gvar.video.page[0].width += (16*2);\r
gvar.video.page[0].height += (16*2);\r
modexShowPage(&gvar.video.page[0]);\r
- addr = (gvar.video.page[0].width/4) * chy + (chx / 4) + ((word)gvar.video.page[0].data); /* at start of function */\r
vga_read_crtc_mode(&cm);\r
// NTS: We're in Mode-X now. printf() is useless. Do not use printf(). Or INT 10h text printing. Or DOS console output.\r
//modexprint(16, 16, 1, 15, "wwww");\r
chx=0;\r
chy+=8;\r
sprintf(pee,"%u", colpee);\r
- modexprint(&gvar.video.page[0], 200, 200, 1, 47, 0, &pee, addr, 1);\r
+ modexprint(&gvar.video.page[0], 200, 200, 1, 47, 0, &pee);\r
//getch();\r
}\r
sprintf(pee, "%zc", e);\r
- modexprint(&gvar.video.page[0], chx, chy, 1, 0, colpee, &e, addr, 1);\r
+ modexprint(&gvar.video.page[0], chx, chy, 1, 0, colpee, &e);\r
chx+=9;\r
colpee++;\r
if(colpee>=32+24) colpee=32;\r
break;
case 8:
colorz(page, pee);
- modexprint(page, page->sw/2, page->sh/2, 1, 47, 0, "bakapi", (page[0].width/4) * pee->yy + (pee->xx / 4) + ((word)page[0].data), 1);
+ modexprint(page, page->sw/2, page->sh/2, 1, 47, 0, "bakapi");
break;
case 9:
if(pee->coor <= HGQ)
\r
}\r
\r
-void modexprint(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str, word addrq, boolean q)\r
+void modexprint(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str)\r
{\r
word s, o, w;\r
word addr = (word) romFontsData.l;\r
+ word addrq = (page->width/4) * y + (x / 4) + ((word)page->data);\r
byte c;\r
\r
s=romFonts[t].seg;\r
JNZ L1\r
}\r
//TODO: OPTIMIZE THIS!!!!\r
- modexDrawCharPBuf(page, x, y, t, col, bgcol, addrq, q);\r
+ modexDrawCharPBuf(page, x, y, t, col, bgcol, addrq);\r
\r
//if(!q) getch();\r
}\r
outpw(GC_INDEX+1, x & 3);
return vga_state.vga_graphics_ram[addr];
}
-void modexprint(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str, word addrq, boolean q);
+void modexprint(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str);
void modexprintbig(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str);
void modexpdump(page_t *pee);
void modexcls(page_t *page, byte color, byte *Where);
}\r
}\r
\r
-void modexDrawCharPBuf(page_t *page, int x, int y, word t, word col, word bgcol, word addr, boolean q)\r
+void modexDrawCharPBuf(page_t *page, int x, int y, word t, word col, word bgcol, word addr)\r
{\r
word i, j, k;\r
for(i=0; i<romFonts[t].charSize; i++)\r
//every "pixel" row\r
while(j)\r
{\r
- if(q)\r
+// if(q)\r
//_fmemcpy(page->data + (((page->width/4) * (y+i)) + ((x+romFontsData.chw+k) / 4)), romFontsData.l[i] & j ? col:bgcol, 2);\r
modexwritepixel(page, x+k+romFontsData.chw, y+i, addr, romFontsData.l[i] & j ? col:bgcol);\r
- else\r
+// else\r
//printf("l[i]=%c j=%02u l[i] & j=%02u %c\n", l[i] , j, l[i] & j, l[i] & j ? '*':' ');\r
//printf("%c", l[i] & j ? '*':' ');\r
- romFontsData.z[k]=romFontsData.l[i] & j ? '*':' ';\r
+// romFontsData.z[k]=romFontsData.l[i] & j ? '*':' ';\r
j>>=1;\r
k++;\r
}\r
- if(!q)\r
- {\r
- for(k=0;k<9;k++)\r
- {\r
- printf("%c", romFontsData.z[k]);\r
- }\r
- printf("\n");\r
- }\r
+// if(!q)\r
+// {\r
+// for(k=0;k<9;k++)\r
+// {\r
+// printf("%c", romFontsData.z[k]);\r
+// }\r
+// printf("\n");\r
+// }\r
}\r
romFontsData.chw += k;\r
}\r
void modexDrawBmpPBufRegion(page_t *page, int x, int y, int rx, int ry, int rw, int rh, planar_buf_t *bmp);\r
void modexDrawSpritePBuf(page_t *page, int x, int y, planar_buf_t *bmp);\r
void modexDrawSpritePBufRegion(page_t *page, int x, int y, int rx, int ry, int rw, int rh, planar_buf_t *bmp);\r
-void modexDrawCharPBuf(page_t *page, int x, int y, word t, word col, word bgcol, word addr, boolean q);\r
+void modexDrawCharPBuf(page_t *page, int x, int y, word t, word col, word bgcol, word addr);\r
\r
#endif\r
word bgcol = 0;
word type = 1;
//t=(((*(gv->clock))-gv->clock_start) /18.2);
- //sprintf(gv->pee, "%f fps", (double)gv->kurokku.tiku/ticktock(gv));
- vga_moveto(x,y);
- vga_sync_bios_cursor();
- printf("%f fps", (double)gv->kurokku.tiku/ticktock(gv));
- //modexprint(pip[1].page, 16, 16, 1, 15, 0, gv->pee, 1);
+ sprintf(gv->pee, "%f fps", (double)gv->kurokku.tiku/ticktock(gv));
+ modexprint(pip[1].page, 16, 16, 1, 15, 0, gv->pee);
//(gv->clock_start)=*(gv->clock);
gv->kurokku.tiku=0;
}