From 5555d34e4490700bf999450d02b8a762f0559705 Mon Sep 17 00:00:00 2001 From: dborth Date: Thu, 6 Nov 2008 22:00:58 +0000 Subject: [PATCH] fix scaling issue - flush square memory! --- source/ngc/menudraw.cpp | 28 ++++++++++++++-------------- source/ngc/video.cpp | 5 +++-- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/source/ngc/menudraw.cpp b/source/ngc/menudraw.cpp index 37fe27c..85da653 100644 --- a/source/ngc/menudraw.cpp +++ b/source/ngc/menudraw.cpp @@ -242,20 +242,20 @@ Credits () DrawText (-1, ypos += 18, (char*)"Official Site: http://code.google.com/p/vba-wii/"); - DrawText (100, ypos += 36, (char*)"Visual Boy Advance GX"); - DrawText (375, ypos, (char*)"Tantric"); - DrawText (100, ypos += 18, (char*)"GameCube/Wii Port Improvements"); - DrawText (375, ypos, (char*)"emukidid"); - DrawText (100, ypos += 18, (char*)"Original GameCube Port"); - DrawText (375, ypos, (char*)"SoftDev"); - DrawText (100, ypos += 18, (char*)"Visual Boy Advance - M"); - DrawText (375, ypos, (char*)"VBA-M Team"); - DrawText (100, ypos += 18, (char*)"Visual Boy Advance 1.7.2"); - DrawText (375, ypos, (char*)"Forgotten"); - DrawText (100, ypos += 18, (char*)"libogc"); - DrawText (375, ypos, (char*)"Shagkur & wintermute"); - DrawText (100, ypos += 18, (char*)"Testing"); - DrawText (375, ypos, (char*)"tehskeen users"); + DrawText (90, ypos += 36, (char*)"Visual Boy Advance GX"); + DrawText (380, ypos, (char*)"Tantric"); + DrawText (90, ypos += 18, (char*)"GameCube/Wii Port Improvements"); + DrawText (380, ypos, (char*)"emukidid"); + DrawText (90, ypos += 18, (char*)"Original GameCube Port"); + DrawText (380, ypos, (char*)"SoftDev"); + DrawText (90, ypos += 18, (char*)"Visual Boy Advance - M"); + DrawText (380, ypos, (char*)"VBA-M Team"); + DrawText (90, ypos += 18, (char*)"Visual Boy Advance 1.7.2"); + DrawText (380, ypos, (char*)"Forgotten"); + DrawText (90, ypos += 18, (char*)"libogc"); + DrawText (380, ypos, (char*)"Shagkur & wintermute"); + DrawText (90, ypos += 18, (char*)"Testing"); + DrawText (380, ypos, (char*)"tehskeen users"); DrawText (-1, ypos += 36, (char*)"And many others who have contributed over the years!"); diff --git a/source/ngc/video.cpp b/source/ngc/video.cpp index 3380bb5..ebef9ba 100644 --- a/source/ngc/video.cpp +++ b/source/ngc/video.cpp @@ -362,8 +362,8 @@ void UpdateScaling() } else // GB { - xscale = 266; - yscale = 240; + xscale = 256; + yscale = 230; } if (GCSettings.widescreen) @@ -378,6 +378,7 @@ void UpdateScaling() square[3] = square[6] = xscale; square[1] = square[4] = yscale; square[7] = square[10] = -yscale; + DCFlushRange (square, sizeof(square)); // update memory BEFORE the GPU accesses it! draw_init ();