X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ftesuto.c;h=83f3712eef3d0bfea0dd774f8bef9b0eac2b67f5;hb=3baebbddf8e57357bc4c5d3e512c91c8e9c84773;hp=2675094f9c589f807ca75c8a0387b74723254b91;hpb=e814c570567b3cc32ea64c4d2e8797b6e0a04b75;p=16.git diff --git a/src/tesuto.c b/src/tesuto.c index 2675094f..83f3712e 100755 --- a/src/tesuto.c +++ b/src/tesuto.c @@ -3,7 +3,7 @@ #include #include -//#include "src/tesuto.h" +#include "src/tesuto.h" static unsigned char palette[768]; @@ -53,7 +53,7 @@ int main(int argc,char **argv) { vga_state.vga_width = 320; // VGA lib currently does not update this vga_state.vga_height = 240; // VGA lib currently does not update this -//#if 1 // 320x240 test mode: this is how Project 16 is using our code, enable for test case +#if 1 // 320x240 test mode: this is how Project 16 is using our code, enable for test case { struct vga_mode_params cm; @@ -70,7 +70,7 @@ int main(int argc,char **argv) { vga_write_crtc_mode(&cm,0); } vga_state.vga_height = 240; // VGA lib currently does not update this -//#endif +#endif /* load color palette */ fd = open(argv[2],O_RDONLY|O_BINARY); @@ -99,7 +99,7 @@ int main(int argc,char **argv) { vga_state.vga_graphics_ram[o] = (i^j)&15; // VRL samples put all colors in first 15! } } - while (getch() != 13); + //while (getch() != 13); /* make distinctive pattern offscreen, render sprite, copy onscreen */ { @@ -342,4 +342,3 @@ int main(int argc,char **argv) { bufsz = 0; return 0; } -