From 29bfadcdd76c746b4fc12edc9bc264a7a538db49 Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Sun, 17 Jun 2007 10:30:34 +0000 Subject: NDS: Compile fixes svn-id: r27508 --- backends/platform/ds/arm9/source/osystem_ds.cpp | 2 +- backends/platform/ds/arm9/source/osystem_ds.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'backends/platform/ds') 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 -- cgit v1.2.3