diff options
author | Johannes Schickel | 2011-04-17 16:23:15 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-17 16:24:37 +0200 |
commit | 7ac3ae108a69587693e0820cde43a63c34a186ec (patch) | |
tree | c3004c8f20548e63bacc813f0a55bdca2b39d4aa /backends/platform/ds/arm9 | |
parent | 4fd3e3d6fe72b6b978fbc5e9e0b5218741d15c83 (diff) | |
download | scummvm-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.cpp | 2 |
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 |