aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm9
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 16:23:15 +0200
committerJohannes Schickel2011-04-17 16:24:37 +0200
commit7ac3ae108a69587693e0820cde43a63c34a186ec (patch)
treec3004c8f20548e63bacc813f0a55bdca2b39d4aa /backends/platform/ds/arm9
parent4fd3e3d6fe72b6b978fbc5e9e0b5218741d15c83 (diff)
downloadscummvm-rg350-7ac3ae108a69587693e0820cde43a63c34a186ec.tar.gz
scummvm-rg350-7ac3ae108a69587693e0820cde43a63c34a186ec.tar.bz2
scummvm-rg350-7ac3ae108a69587693e0820cde43a63c34a186ec.zip
BACKEND: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
Diffstat (limited to 'backends/platform/ds/arm9')
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp
index 576b70dd2a..92f9eb5e9e 100644
--- a/backends/platform/ds/arm9/source/osystem_ds.cpp
+++ b/backends/platform/ds/arm9/source/osystem_ds.cpp
@@ -243,7 +243,7 @@ void OSystem_DS::setCursorPalette(const byte *colors, uint start, uint num) {
}
bool OSystem_DS::grabRawScreen(Graphics::Surface *surf) {
- surf->create(DS::getGameWidth(), DS::getGameHeight(), 1);
+ surf->create(DS::getGameWidth(), DS::getGameHeight(), Graphics::PixelFormat::createFormatCLUT8());
// Ensure we copy using 16 bit quantities due to limitation of VRAM addressing