X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdos%2Fmain.c;h=ca57152fd8edf9fbc64609824b07b20c7cc99749;hb=0cf749b80f7732e66fbb78815e3752985b845d17;hp=a41453bea1d45e2ebd5520a005186433ea59ffb3;hpb=cfe889ac035848dbe4c3a89afb7c8c37a574163e;p=eradicate diff --git a/src/dos/main.c b/src/dos/main.c index a41453b..ca57152 100644 --- a/src/dos/main.c +++ b/src/dos/main.c @@ -1,5 +1,6 @@ #include #include +#include #include "game.h" #include "keyb.h" #include "timer.h" @@ -10,7 +11,7 @@ static void draw(void); static struct video_mode *vmode; -static void *vmem; + int main(int argc, char **argv) { @@ -53,6 +54,7 @@ int main(int argc, char **argv) break_evloop: set_text_mode(); + cleanup_video(); kb_shutdown(); return 0; } @@ -64,7 +66,7 @@ static void draw(void) for(i=0; i> 2) == (j >> 2); + int chess = ((i >> 4) & 1) == ((j >> 4) & 1); *pptr++ = chess ? 0xff00 : 0x00ff; } }