]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/typdefst.h
wwww
[16.git] / src / lib / typdefst.h
index 732053c139af36acafbff2089e6b6a6da6957b61..0f47b2b1a6ebcd58c17a58a35dc55ca4708d4cef 100755 (executable)
@@ -72,17 +72,18 @@ typedef struct {
        word dy;                /* row we are viewing on the virtual screen */\r
        word sw;                /* screen width */\r
        word sh;                /* screen heigth */\r
-       word tilesw;            /* screen width in tiles */\r
-       word tilesh;            /* screen height in tiles */\r
+       word tw;                /* screen width in tiles */\r
+       word th;                /* screen height in tiles */\r
        word width;             /* virtual width of the page */\r
        word height;    /* virtual height of the page */\r
-       word tw;\r
-       word th;\r
+       word tilesw;            /* virtual screen width in tiles */\r
+       word tilesh;            /* virtual screen height in tiles */\r
        sword tilemidposscreenx;        /* middle tile position */\r
        sword tilemidposscreeny;        /* middle tile position */\r
        sword tileplayerposscreenx;     /* player position on screen */\r
        sword tileplayerposscreeny;     /* player position on screen */\r
-       sdiword pagesize;                       /* page size */\r
+       word stridew;                   /*width/4*/\r
+       word pagesize;                  /* page size */\r
 } page_t;\r
 \r
 typedef struct\r
@@ -111,9 +112,10 @@ typedef struct
 {\r
        char old_mode;          //old video mode before game!\r
        page_t page[MAXPAGE];           //pointer to root page[0]\r
-       sdiword vmem_remain;    //remaining video memory\r
+       word vmem_remain;       //remaining video memory\r
        byte num_of_pages;      //number of actual pages\r
        boolean __near p;                       //render page number\r
+       boolean __near r;                       //page flip if true\r
        word pr[MAXPAGE][4];    //render sections of pages\r
 } video_t;\r
 \r