X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypdefst.h;h=cbbe471292229557a05e8e6570b5ee885501700e;hb=51b40bfb7f114e300c6739f98292bc7c5fe6c2d9;hp=d6f972b144451d05abc843b050258a0ef22f5919;hpb=791064641005d3f1f4df55927d28f6eb2db85fe4;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index d6f972b1..cbbe4712 100755 --- a/src/lib/typdefst.h +++ b/src/lib/typdefst.h @@ -42,7 +42,7 @@ * typedefs of the game variables! */ typedef struct { - byte huge *data; + byte *data; word width; word height; byte *palette; @@ -82,7 +82,10 @@ typedef struct { sword tilemidposscreeny; /* middle tile position */ sword tileplayerposscreenx; /* player position on screen */ sword tileplayerposscreeny; /* player position on screen */ - sdiword pagesize; /* page size */ + uint16_t pattern_ofs; /* doslib vga patter offset www */ + word stridew; /*width/4*/ + word pagesize; /* page size */ + word pi; /* incremention page by this much to preserve location */ } page_t; typedef struct @@ -111,10 +114,12 @@ 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 + //0000word startclk; float clk, tickclk; //timer } video_t; typedef struct