\r
void main(int argc, char near *argv[])\r
{\r
+ struct vga_mode_params cm;\r
//JMOJI\r
static byte e;\r
//word ri;\r
gvar.video.page[0].width += (16*2);\r
gvar.video.page[0].height += (16*2);\r
modexShowPage(&gvar.video.page[0]);\r
- vga_state.vga_stride=gvar.video.page[0].width/4;\r
//modexprint(16, 16, 1, 15, "wwww");\r
//getch();\r
// chx=0;\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
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
break;\r
case 2: // TODO: 160x120 according to ModeX_160x120regs\r
return;\r