projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed the physical to virtual translation issues with DJGPP, watcom just
[dosdemo]
/
src
/
dos
/
main.c
diff --git
a/src/dos/main.c
b/src/dos/main.c
index
aed12e9
..
70ea449
100644
(file)
--- a/
src/dos/main.c
+++ b/
src/dos/main.c
@@
-15,6
+15,7
@@
#include "cfgopt.h"
#include "logger.h"
#include "tinyfps.h"
#include "cfgopt.h"
#include "logger.h"
#include "tinyfps.h"
+#include "cdpmi.h"
#undef NOKEYB
#undef NOKEYB
@@
-31,6
+32,10
@@
static quat_t rot = {0, 0, 0, 1};
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
+#ifdef __DJGPP__
+ __djgpp_nearptr_enable();
+#endif
+
fbsize = fb_width * fb_height * fb_bpp / 8;
init_logger("demo.log");
fbsize = fb_width * fb_height * fb_bpp / 8;
init_logger("demo.log");