X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ftesuto.h;h=29a09d1770f096b3ea61f062bfdc5fa2b1f9d6a1;hb=2fc6c650cc91ba3a4447630286d9aa4bb92bbfda;hp=df07c5bf10eec417f463bd965802f0117ec88461;hpb=31f7d5ef5f11def7a113a8a572fc0e29cab03ca2;p=16.git diff --git a/src/tesuto.h b/src/tesuto.h index df07c5bf..29a09d17 100755 --- a/src/tesuto.h +++ b/src/tesuto.h @@ -1,49 +1,17 @@ #ifndef __TESUTO_H__ #define __TESUTO_H__ +#include "src/lib/testpatt.h" #include "src/lib/16_head.h" #include "src/lib/16_vl.h" #include "src/lib/16_in.h" #include "src/lib/scroll16.h" +#include "src/lib/16_spri.h" #include #include #include #include -#define PANKEY0EXE \ - panpagemanual(mv, player, 0); \ - if(IN_KeyDown(1+1)){ pan.pn=0; modexShowPage(&(gvar.video.page[pan.pn])); } \ - if(IN_KeyDown(2+1)){ pan.pn=1; modexShowPage(&(gvar.video.page[pan.pn])); } \ - if(IN_KeyDown(3+1)){ pan.pn=2; modexShowPage(&(gvar.video.page[pan.pn])); } \ - if(IN_KeyDown(4+1)){ pan.pn=3; modexShowPage(&(gvar.video.page[pan.pn])); } \ - if(IN_KeyDown(25)){ modexpdump(mv[1].page); modexShowPage(&(gvar.video.page[1])); IN_UserInput(1,1); } - -////corner markers -#define GVP gvar.video.page[0] -#define GW GVP.width-16 -#define GH GVP.height-16 -#define GE GVP.sw -#define GJ GVP.sh -#define DCBF modexClearRegion(&GVP - -#define DRAWOTHERCORNERBOX_TOPLEFT \ -DCBF, 0, 0, 16, 16, 0); \ -DCBF, 16, 16, 16, 16, 2); - -#define DRAWOTHERCORNERBOX_TOPRIGHT \ -DCBF, GW, 0, 16, 16, 0); \ -DCBF, GE, 16, 16, 16, 2); - -#define DRAWOTHERCORNERBOX_BOTTOMLEFT \ -DCBF, 0, GH, 16, 16, 0); \ -DCBF, 16, GJ, 16, 16, 2); - -#define DRAWOTHERCORNERBOX_BOTTOMRIGHT \ -DCBF, GE, GJ, 16, 16, 2);\ -DCBF, GW, GH, 16, 16, 0); - - - typedef unsigned char far *VGA_RAM_PTR; //VGA_RAM_PTR vga_graphics_ram = (VGA_RAM_PTR)MK_FP(0xA000,0x0000); //unsigned char vga_stride = 80; // 80 x 4 = 320 for 320-pixel wide modes