X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fdos%2Fmain.c;h=70ea449f9b8001017e07d4feb55bb24c4555ef1a;hb=c1029b14c3fde9c98d524f17201364c695b6b117;hp=aed12e98feaec4fe8b245b839ad12697828c8abb;hpb=772dfe62feafd0583e52326c7419ef01e04cac60;p=dosdemo diff --git a/src/dos/main.c b/src/dos/main.c index aed12e9..70ea449 100644 --- a/src/dos/main.c +++ b/src/dos/main.c @@ -15,6 +15,7 @@ #include "cfgopt.h" #include "logger.h" #include "tinyfps.h" +#include "cdpmi.h" #undef NOKEYB @@ -31,6 +32,10 @@ static quat_t rot = {0, 0, 0, 1}; int main(int argc, char **argv) { +#ifdef __DJGPP__ + __djgpp_nearptr_enable(); +#endif + fbsize = fb_width * fb_height * fb_bpp / 8; init_logger("demo.log");