diff options
author | Bertrand Augereau | 2007-06-17 10:30:34 +0000 |
---|---|---|
committer | Bertrand Augereau | 2007-06-17 10:30:34 +0000 |
commit | 29bfadcdd76c746b4fc12edc9bc264a7a538db49 (patch) | |
tree | 32086162c817259ae570b575f134fd8b094bf053 /backends/platform/ds/arm9/source | |
parent | 65a39ab0d03de94be58d3c4db74ee15d812b23c3 (diff) | |
download | scummvm-rg350-29bfadcdd76c746b4fc12edc9bc264a7a538db49.tar.gz scummvm-rg350-29bfadcdd76c746b4fc12edc9bc264a7a538db49.tar.bz2 scummvm-rg350-29bfadcdd76c746b4fc12edc9bc264a7a538db49.zip |
NDS: Compile fixes
svn-id: r27508
Diffstat (limited to 'backends/platform/ds/arm9/source')
-rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.cpp | 2 | ||||
-rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp index 35cf81ef4b..43fd629a2f 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.cpp +++ b/backends/platform/ds/arm9/source/osystem_ds.cpp @@ -478,7 +478,7 @@ bool OSystem_DS::grabRawScreen(Graphics::Surface* surf) { // Ensure we copy using 16 bit quantities due to limitation of VRAM addressing - size_t imageStrideInBytes = isCpuScalerEnabled() DS::getGameWidth() ? 512; + size_t imageStrideInBytes = DS::isCpuScalerEnabled() ? DS::getGameWidth() : 512; size_t imageStrideInWords = imageStrideInBytes / 2; u16* image = (u16 *) DS::get8BitBackBuffer(); diff --git a/backends/platform/ds/arm9/source/osystem_ds.h b/backends/platform/ds/arm9/source/osystem_ds.h index b6d6f5b7bc..316f45bb6e 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.h +++ b/backends/platform/ds/arm9/source/osystem_ds.h @@ -159,4 +159,9 @@ void OSystem_DS::colorToRGB(OverlayColor color, uint8 &r, uint8 &g, uint8 &b) //consolePrintf("coltorgb\n"); } +namespace DS +{ +bool isCpuScalerEnabled(); +} + #endif |