X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ftesuto.h;h=54baf61a7a302502e047f8d699c6cfd69fe570aa;hb=00733c2c8a7f1c5a1b618af05c39235fdd203364;hp=df07c5bf10eec417f463bd965802f0117ec88461;hpb=31f7d5ef5f11def7a113a8a572fc0e29cab03ca2;p=16.git diff --git a/src/tesuto.h b/src/tesuto.h index df07c5bf..54baf61a 100755 --- a/src/tesuto.h +++ b/src/tesuto.h @@ -1,6 +1,7 @@ #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" @@ -10,40 +11,6 @@ #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