• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revision678df6c13efbdae2a45c9a44c285f299cc179f4d (tree)
Zeit2019-05-23 05:03:54
AutorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[VM][PC9801][DISPLAY] Fix wrong drawing.

Ändern Zusammenfassung

Diff

--- a/source/src/vm/pc9801/display.cpp
+++ b/source/src/vm/pc9801/display.cpp
@@ -2755,6 +2755,7 @@ void DISPLAY::draw_chr_screen()
27552755 // if(_height > 480) _height = 480;
27562756 _height = SCREEN_HEIGHT;
27572757 _width <<= 4;
2758+ if(_width > SCREEN_WIDTH) _width = SCREEN_WIDTH;
27582759 //out_debug_log("WxH: %dx%d", _width, _height);
27592760 if(_width < 0) _width = 0;
27602761 static const uint32_t __vramsize = SCREEN_HEIGHT * (SCREEN_WIDTH >> 3);
@@ -2922,7 +2923,8 @@ void DISPLAY::draw_gfx_screen()
29222923 if(_height > 480) _height = 480;
29232924 _width <<= 4;
29242925 if(_width < 0) _width = 0;
2925- //out_debug_log("WxH: %dx%d", _width, _height);
2926+ if(_width > SCREEN_WIDTH) _width = SCREEN_WIDTH;
2927+ out_debug_log("WxH: %dx%d", _width, _height);
29262928 for(int i = 0, ytop = 0; i < 4; i++) {
29272929 uint32_t ra = ra_gfx[i * 4];
29282930 ra |= ra_gfx[i * 4 + 1] << 8;
Show on old repository browser