aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorBertrand Augereau2007-06-17 10:30:34 +0000
committerBertrand Augereau2007-06-17 10:30:34 +0000
commit29bfadcdd76c746b4fc12edc9bc264a7a538db49 (patch)
tree32086162c817259ae570b575f134fd8b094bf053 /backends
parent65a39ab0d03de94be58d3c4db74ee15d812b23c3 (diff)
downloadscummvm-rg350-29bfadcdd76c746b4fc12edc9bc264a7a538db49.tar.gz
scummvm-rg350-29bfadcdd76c746b4fc12edc9bc264a7a538db49.tar.bz2
scummvm-rg350-29bfadcdd76c746b4fc12edc9bc264a7a538db49.zip
NDS: Compile fixes
svn-id: r27508
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.cpp2
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.h5
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