From 4e6ef52609a4ff0d863c43c0e2702a6f3ed271c5 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Sun, 17 Apr 2016 20:01:18 -0500 Subject: [PATCH] fontgfx.exe workings --- src/fontgfx.c | 23 +++++++++++------------ src/lib/modex16.c | 4 ---- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/src/fontgfx.c b/src/fontgfx.c index 4db837cc..d1d252cc 100755 --- a/src/fontgfx.c +++ b/src/fontgfx.c @@ -91,19 +91,18 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ return; } VGAmodeX(1, 1, &gvar); - //int10_setmode(19); - __asm{ - mov AH,12H - mov BL,30h - mov AL,04h - int 10 - mov ax,1123h - int 10h - ;mov ax,1112h ; load 8x8 character set into RAM - ;int 10h - } +// __asm{ +// mov AH,12H +// mov BL,30h +// mov AL,04h +// int 10 +// mov ax,1123h +// int 10h +// ;mov ax,1112h ; load 8x8 character set into RAM +// ;int 10h +// } /* setup camera and screen~ */ -//.. gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]); + gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]); //gvar.video.page[0].width += (16*2); //gvar.video.page[0].height += (16*2); //++++ modexShowPage(&gvar.video.page[0]); diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 6a4fbe1c..c1c8eb5d 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -115,10 +115,6 @@ void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv) cm.clock_select = 0; /* misc register = 0xE3 25MHz */ cm.vsync_neg = 1; cm.hsync_neg = 1; - - cm.scanline_div2=1; /* CRTC[0x17] bit 2 */ - cm.scan_double=0; /* CRTC[0x09] bit 7 */ - cm.max_scanline=4; /* CRTC[0x09] bit 4-0 */ break; case 2: // TODO: 160x120 according to ModeX_160x120regs return; -- 2.39.5