X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypdefst.h;h=0f47b2b1a6ebcd58c17a58a35dc55ca4708d4cef;hb=208a9f3194d5039b308f3a4f1a1bcdee7beb244d;hp=732053c139af36acafbff2089e6b6a6da6957b61;hpb=80b3d6cc928bc94a01aa357bca85d077ec5fba2f;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index 732053c1..0f47b2b1 100755 --- a/src/lib/typdefst.h +++ b/src/lib/typdefst.h @@ -72,17 +72,18 @@ typedef struct { word dy; /* row we are viewing on the virtual screen */ word sw; /* screen width */ word sh; /* screen heigth */ - word tilesw; /* screen width in tiles */ - word tilesh; /* screen height in tiles */ + word tw; /* screen width in tiles */ + word th; /* screen height in tiles */ word width; /* virtual width of the page */ word height; /* virtual height of the page */ - word tw; - word th; + word tilesw; /* virtual screen width in tiles */ + word tilesh; /* virtual screen height in tiles */ sword tilemidposscreenx; /* middle tile position */ sword tilemidposscreeny; /* middle tile position */ sword tileplayerposscreenx; /* player position on screen */ sword tileplayerposscreeny; /* player position on screen */ - sdiword pagesize; /* page size */ + word stridew; /*width/4*/ + word pagesize; /* page size */ } page_t; typedef struct @@ -111,9 +112,10 @@ typedef struct { char old_mode; //old video mode before game! page_t page[MAXPAGE]; //pointer to root page[0] - sdiword vmem_remain; //remaining video memory + word vmem_remain; //remaining video memory byte num_of_pages; //number of actual pages boolean __near p; //render page number + boolean __near r; //page flip if true word pr[MAXPAGE][4]; //render sections of pages } video_t;