]> 4ch.mooo.com Git - 16.git/commitdiff
stride..
authorsparky4 <sparky4@cock.li>
Mon, 18 Apr 2016 02:05:32 +0000 (21:05 -0500)
committersparky4 <sparky4@cock.li>
Mon, 18 Apr 2016 02:05:32 +0000 (21:05 -0500)
src/fontgfx.c
src/lib/modex16.c

index 7d4e2102018c62d2e6c6ba73e0327b05d2b5fd7b..ee2427f07595fc1195a7adb4787d95ead01fba8e 100755 (executable)
@@ -142,13 +142,13 @@ IIIIIII  BBBBBBBBB    MMMM    M    MMMM\n\
 //     modexprintbig(&gvar.video.page[0], 0, 0, 1, colpee, 0, "IBM");\r
 //     modexprint(0, 0, 1, 0, colpee, ROSE);\r
 //++++ getch();\r
+       vga_read_crtc_mode(&cm);\r
        VGAmodeX(0, 1, &gvar);\r
 //     rosa=malloc(sizeof(ROSE));\r
 //     (*rosa)=(byte)ROSE;\r
        printf("\n%s\n", rose);\r
        //printf("\nh=%d\n", '8');\r
 //     printf("\n%c\n", e);\r
-       vga_read_crtc_mode(&cm);\r
        printf("cm.offset=%d\n", cm.offset);\r
        printf("vga_state.vga_stride=%d\n", vga_state.vga_stride);\r
 }\r
index e8e5208b098eb6220b2bf49e60473a46d86cda96..eb650a0aef3f6fb29fa7c4b2ed6a6b9e336ee3f7 100755 (executable)
@@ -115,8 +115,8 @@ void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv)
                        cm.clock_select = 0; /* misc register = 0xE3  25MHz */\r
                        cm.vsync_neg = 1;\r
                        cm.hsync_neg = 1;\r
-                       vga_state.vga_stride=88;\r
-                       cm.offset=88;\r
+                       vga_state.vga_stride=44;\r
+                       cm.offset=44;\r
                        break;\r
                case 2: // TODO: 160x120 according to ModeX_160x120regs\r
                        return;\r