• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

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

wwww


コミットメタ情報

リビジョンd31b48962de4f4384cca54f92db59ccc0bb06fbc (tree)
日時2016-04-21 23:00:04
作者Jonathan Campbell <jonathan@cast...>
コミッターJonathan Campbell

ログメッセージ

fix updated code to copy the char, not NUL char (doh!)
fix modex VGA init to set .width and .height page members.
shinku()'s fps indicator works now!

変更サマリ

差分

--- a/src/lib/modex16.c
+++ b/src/lib/modex16.c
@@ -95,6 +95,9 @@ void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv)
9595 /* width and height */
9696 gv->video.page[0].sw = vga_state.vga_width = 320; // VGA lib currently does not update this
9797 gv->video.page[0].sh = vga_state.vga_height = 240; // VGA lib currently does not update this
98+ /* virtual width and height. match screen, at first */
99+ gv->video.page[0].height = gv->video.page[0].sh;
100+ gv->video.page[0].width = gv->video.page[0].sw;
98101
99102 // mode X BYTE mode
100103 cm.word_mode = 0;
@@ -907,7 +910,7 @@ void modexprint(page_t *page, word x, word y, word t, word col, word bgcol, cons
907910 // load the character into romFontsData.l
908911 // no need for inline assembly!
909912 // NTS: It might even be faster to just let the modexDrawChar point directly at ROM font than to copy per char! --J.C.
910- _fmemcpy(romFontsData.l,MK_FP(s,o)/*ROM font location*/,w/*char size*/);
913+ _fmemcpy(romFontsData.l,MK_FP(s,o+(w*c))/*ROM font location*/,w/*char size*/);
911914 modexDrawChar(page, x_draw/*for mode X planar use*/, t, col, bgcol, addrr);
912915 x_draw += 8; /* track X for edge of screen */
913916 addrr += 2; /* move 8 pixels over (2 x 4 planar pixels per byte) */
--- a/src/lib/scroll16.c
+++ b/src/lib/scroll16.c
@@ -594,14 +594,15 @@ void shinku(global_game_variables_t *gv)
594594 {
595595 word x = (16);
596596 word y = (16);
597- word col = 1;
597+ word col = 7;
598598 word bgcol = 0;
599- word type = 1;
599+ word type = 0;
600+
600601 //t=(((*(gv->clock))-gv->clock_start) /18.2);
601602 sprintf(gv->pee, "%f fps", (double)gv->kurokku.tiku/ticktock(gv));
602- printf("%s\n", gv->pee);
603+// printf("%s\n", gv->pee);
603604 //FIXME PLEASE!!
604- modexprint(&(gv->video.page[0]), 200, 200, type, col, bgcol, gv->pee);
605+ modexprint(&(gv->video.page[0]), x, y, type, col, bgcol, gv->pee);
605606 //++++ modexprint(&(gv->video.page[0]), x, y, type, col, bgcol, gv->pee);
606607 //(gv->clock_start)=*(gv->clock);
607608 gv->kurokku.tiku=0;