/* width and height */\r
gv->video.page[0].sw = vga_state.vga_width = 320; // VGA lib currently does not update this\r
gv->video.page[0].sh = vga_state.vga_height = 240; // VGA lib currently does not update this\r
+ /* virtual width and height. match screen, at first */\r
+ gv->video.page[0].height = gv->video.page[0].sh;\r
+ gv->video.page[0].width = gv->video.page[0].sw;\r
\r
// mode X BYTE mode\r
cm.word_mode = 0;\r
// load the character into romFontsData.l\r
// no need for inline assembly!\r
// NTS: It might even be faster to just let the modexDrawChar point directly at ROM font than to copy per char! --J.C.\r
- _fmemcpy(romFontsData.l,MK_FP(s,o)/*ROM font location*/,w/*char size*/);\r
+ _fmemcpy(romFontsData.l,MK_FP(s,o+(w*c))/*ROM font location*/,w/*char size*/);\r
modexDrawChar(page, x_draw/*for mode X planar use*/, t, col, bgcol, addrr);\r
x_draw += 8; /* track X for edge of screen */\r
addrr += 2; /* move 8 pixels over (2 x 4 planar pixels per byte) */\r
{
word x = (16);
word y = (16);
- word col = 1;
+ word col = 7;
word bgcol = 0;
- word type = 1;
+ word type = 0;
+
//t=(((*(gv->clock))-gv->clock_start) /18.2);
sprintf(gv->pee, "%f fps", (double)gv->kurokku.tiku/ticktock(gv));
- printf("%s\n", gv->pee);
+// printf("%s\n", gv->pee);
//FIXME PLEASE!!
- modexprint(&(gv->video.page[0]), 200, 200, type, col, bgcol, gv->pee);
+ modexprint(&(gv->video.page[0]), x, y, type, col, bgcol, gv->pee);
//++++ modexprint(&(gv->video.page[0]), x, y, type, col, bgcol, gv->pee);
//(gv->clock_start)=*(gv->clock);
gv->kurokku.tiku=0;