diff options
author | Colin Snover | 2017-10-28 15:26:04 -0500 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-18 13:49:15 +0200 |
commit | 334e0e74637482e286f62b3df9908310df86e1e2 (patch) | |
tree | 91c2c5fb2f44e0d2253ef2bff69dd814b21fd58e | |
parent | 042650157a7d3fb02e0e436cd43665b5b1e67a75 (diff) | |
download | scummvm-rg350-334e0e74637482e286f62b3df9908310df86e1e2.tar.gz scummvm-rg350-334e0e74637482e286f62b3df9908310df86e1e2.tar.bz2 scummvm-rg350-334e0e74637482e286f62b3df9908310df86e1e2.zip |
PSP: Remove dead code
-rw-r--r-- | backends/platform/psp/cursor.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/backends/platform/psp/cursor.cpp b/backends/platform/psp/cursor.cpp index b7c69d5b98..06c5e4904a 100644 --- a/backends/platform/psp/cursor.cpp +++ b/backends/platform/psp/cursor.cpp @@ -220,10 +220,6 @@ inline void Cursor::adjustXYForScreenSize(int32 &x, int32 &y) { void Cursor::setScreenPaletteScummvmPixelFormat(const Graphics::PixelFormat *format) { DEBUG_ENTER_FUNC(); - uint32 oldPaletteSize = 0; - if (_screenPalette.isAllocated()) - oldPaletteSize = _screenPalette.getSizeInBytes(); - PSPPixelFormat::Type bufferType = PSPPixelFormat::Type_Unknown; PSPPixelFormat::Type paletteType = PSPPixelFormat::Type_Unknown; bool swapRedBlue = false; @@ -247,14 +243,11 @@ void Cursor::setSizeAndScummvmPixelFormat(uint32 width, uint32 height, const Gra PSP_DEBUG_PRINT("useCursorPalette[%s]\n", _useCursorPalette ? "true" : "false"); - uint32 oldBufferSize = 0, oldPaletteSize = 0; + uint32 oldBufferSize = 0; if (_buffer.isAllocated()) oldBufferSize = _buffer.getSizeInBytes(); - if (_palette.isAllocated()) - oldPaletteSize = _palette.getSizeInBytes(); - setSize(width, height); PSPPixelFormat::Type bufferType = PSPPixelFormat::Type_Unknown; |