From: sparky4 Date: Mon, 18 Apr 2016 02:04:24 +0000 (-0500) Subject: stride.. X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=32b9516ce492e88a18171a2af7af91de1ed8a366;p=16.git stride.. --- diff --git a/src/fontgfx.c b/src/fontgfx.c index d76cfc33..7d4e2102 100755 --- a/src/fontgfx.c +++ b/src/fontgfx.c @@ -34,6 +34,7 @@ global_game_variables_t gvar; void main(int argc, char near *argv[]) { + struct vga_mode_params cm; //JMOJI static byte e; //word ri; @@ -106,7 +107,6 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ gvar.video.page[0].width += (16*2); gvar.video.page[0].height += (16*2); modexShowPage(&gvar.video.page[0]); - vga_state.vga_stride=gvar.video.page[0].width/4; //modexprint(16, 16, 1, 15, "wwww"); //getch(); // chx=0; @@ -148,5 +148,7 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ printf("\n%s\n", rose); //printf("\nh=%d\n", '8'); // printf("\n%c\n", e); + vga_read_crtc_mode(&cm); + printf("cm.offset=%d\n", cm.offset); printf("vga_state.vga_stride=%d\n", vga_state.vga_stride); } diff --git a/src/lib/modex16.c b/src/lib/modex16.c index c1c8eb5d..e8e5208b 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -115,6 +115,8 @@ 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; + vga_state.vga_stride=88; + cm.offset=88; break; case 2: // TODO: 160x120 according to ModeX_160x120regs return;