• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

wwww


Commit MetaInfo

Revisione3ac78ae7ba30101e388236f6312a04c79a94c35 (tree)
Time2016-04-21 23:02:09
AuthorJonathan Campbell <jonathan@cast...>
CommiterJonathan Campbell

Log Message

modex draw char use rom font height, do not assume 8.

Change Summary

Incremental Difference

--- a/src/lib/modex16/16render.c
+++ b/src/lib/modex16/16render.c
@@ -443,6 +443,7 @@ void modexDrawChar(page_t *page, int x/*for planar selection only*/, word t, wor
443443 * so, we enumerate over columns (not rows!) to draw every 4th pixel. bit masks are used because of the font bitmap.
444444 *
445445 * NTS: addr defines what VGA memory address we use, "x" is redundant except to specify which of the 4 pixels we select in the map mask register. */
446+ word rows = romFonts[t].charSize;
446447 word drawaddr;
447448 word colm, row;
448449 byte fontbyte;
@@ -455,7 +456,7 @@ void modexDrawChar(page_t *page, int x/*for planar selection only*/, word t, wor
455456 for (colm=0;colm < 4;colm++) {
456457 drawaddr = addr;
457458 modexSelectPlane(PLANE(plane));
458- for (row=0;row < 8;row++) {
459+ for (row=0;row < rows;row++) {
459460 fontbyte = romFontsData.l[row];
460461 vga_state.vga_graphics_ram[drawaddr ] = (fontbyte & m1) ? col : bgcol;
461462 vga_state.vga_graphics_ram[drawaddr+1] = (fontbyte & m2) ? col : bgcol;