From: sparky4 Date: Mon, 18 Apr 2016 02:05:32 +0000 (-0500) Subject: stride.. X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=eec0172a12971bdb7b6cabd9f712af5c2d24c0d3;p=16.git stride.. --- diff --git a/src/fontgfx.c b/src/fontgfx.c index 7d4e2102..ee2427f0 100755 --- a/src/fontgfx.c +++ b/src/fontgfx.c @@ -142,13 +142,13 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ // modexprintbig(&gvar.video.page[0], 0, 0, 1, colpee, 0, "IBM"); // modexprint(0, 0, 1, 0, colpee, ROSE); //++++ getch(); + vga_read_crtc_mode(&cm); VGAmodeX(0, 1, &gvar); // rosa=malloc(sizeof(ROSE)); // (*rosa)=(byte)ROSE; 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 e8e5208b..eb650a0a 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -115,8 +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; + vga_state.vga_stride=44; + cm.offset=44; break; case 2: // TODO: 160x120 according to ModeX_160x120regs return;