[Scummvm-cvs-logs] SF.net SVN: scummvm: [27399] scummvm/branches/branch-0-10-0/backends/ platform/ds/arm9/source/dsmain.cpp
tramboi at users.sourceforge.net
tramboi at users.sourceforge.net
Thu Jun 14 13:15:39 CEST 2007
Revision: 27399
http://scummvm.svn.sourceforge.net/scummvm/?rev=27399&view=rev
Author: tramboi
Date: 2007-06-14 04:04:45 -0700 (Thu, 14 Jun 2007)
Log Message:
-----------
DS : setKeyboardEnable should synchronize SUB correctly when CPU scaler is on
Modified Paths:
--------------
scummvm/branches/branch-0-10-0/backends/platform/ds/arm9/source/dsmain.cpp
Modified: scummvm/branches/branch-0-10-0/backends/platform/ds/arm9/source/dsmain.cpp
===================================================================
--- scummvm/branches/branch-0-10-0/backends/platform/ds/arm9/source/dsmain.cpp 2007-06-14 10:12:25 UTC (rev 27398)
+++ scummvm/branches/branch-0-10-0/backends/platform/ds/arm9/source/dsmain.cpp 2007-06-14 11:04:45 UTC (rev 27399)
@@ -1019,8 +1019,19 @@
// the same.
u16* buffer = get8BitBackBuffer();
- for (int r = 0; r < (512 * 256) >> 1; r++) {
- BG_GFX_SUB[r] = buffer[r];
+ if(isCpuScalerEnabled())
+ {
+ for(int j=0; j<200; ++j)
+ {
+ u16* scanline = BG_GFX_SUB + 256*j;
+ for(int i=0; i<160; ++i)
+ scanline[i] = buffer[160*j + i];
+ }
+ }
+ else
+ {
+ for (int r = 0; r < (512 * 256) >> 1; r++)
+ BG_GFX_SUB[r] = buffer[r];
}
SUB_DISPLAY_CR &= ~DISPLAY_BG1_ACTIVE; // Turn off keyboard layer
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list