diff options
author | Colin Snover | 2017-10-29 13:15:38 -0500 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-18 13:49:15 +0200 |
commit | c240af799fa61f647073cfa5b94d76b26880c143 (patch) | |
tree | 1ac2d1247fcf43e7e4160ce1d0a0416b6ab8445e /backends/platform/psp | |
parent | 7016c86d5348586fd798650f46804665f207dcd0 (diff) | |
download | scummvm-rg350-c240af799fa61f647073cfa5b94d76b26880c143.tar.gz scummvm-rg350-c240af799fa61f647073cfa5b94d76b26880c143.tar.bz2 scummvm-rg350-c240af799fa61f647073cfa5b94d76b26880c143.zip |
PSP: Fix compilation failures when debug printing is enabled
Diffstat (limited to 'backends/platform/psp')
-rw-r--r-- | backends/platform/psp/display_manager.cpp | 2 | ||||
-rw-r--r-- | backends/platform/psp/osys_psp.cpp | 2 | ||||
-rw-r--r-- | backends/platform/psp/png_loader.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/psp/display_manager.cpp b/backends/platform/psp/display_manager.cpp index 54ad0d3223..fd94827e04 100644 --- a/backends/platform/psp/display_manager.cpp +++ b/backends/platform/psp/display_manager.cpp @@ -435,7 +435,7 @@ bool DisplayManager::renderAll() { _overlay->isDirty() ? "true" : "false", _cursor->isDirty() ? "true" : "false", _keyboard->isDirty() ? "true" : "false", - _imageViewer->isDirty() ? "true" : "false", + _imageViewer->isDirty() ? "true" : "false" ); _masterGuRenderer.guPreRender(); // Set up rendering diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp index 314580fd37..5d9e3aba61 100644 --- a/backends/platform/psp/osys_psp.cpp +++ b/backends/platform/psp/osys_psp.cpp @@ -314,7 +314,7 @@ void OSystem_PSP::setMouseCursor(const void *buf, uint w, uint h, int hotspotX, _displayManager.waitUntilRenderFinished(); _pendingUpdate = false; - PSP_DEBUG_PRINT("pbuf[%p], w[%u], h[%u], hotspot:X[%d], Y[%d], keycolor[%d], scale[%d], pformat[%p]\n", buf, w, h, hotspotX, hotspotY, keycolor, cursorTargetScale, format); + PSP_DEBUG_PRINT("pbuf[%p], w[%u], h[%u], hotspot:X[%d], Y[%d], keycolor[%d], scale[%d], pformat[%p]\n", buf, w, h, hotspotX, hotspotY, keycolor, !dontScale, format); if (format) { PSP_DEBUG_PRINT("format: bpp[%d], rLoss[%d], gLoss[%d], bLoss[%d], aLoss[%d], rShift[%d], gShift[%d], bShift[%d], aShift[%d]\n", format->bytesPerPixel, format->rLoss, format->gLoss, format->bLoss, format->aLoss, format->rShift, format->gShift, format->bShift, format->aShift); } diff --git a/backends/platform/psp/png_loader.cpp b/backends/platform/psp/png_loader.cpp index 91187ae4d8..502ebf52cc 100644 --- a/backends/platform/psp/png_loader.cpp +++ b/backends/platform/psp/png_loader.cpp @@ -144,7 +144,7 @@ bool PngLoader::findImageDimensions() { bool status = basicImageLoad(); - PSP_DEBUG_PRINT("width[%d], height[%d], paletteSize[%d], bitDepth[%d], channels[%d], rowBytes[%d]\n", _width, _height, _paletteSize, _bitDepth, _channels, _infoPtr->rowbytes); + PSP_DEBUG_PRINT("width[%d], height[%d], paletteSize[%d], bitDepth[%d], channels[%d], rowBytes[%d]\n", _width, _height, _paletteSize, _bitDepth, _channels, png_get_rowbytes(_pngPtr, _infoPtr)); png_destroy_read_struct(&_pngPtr, &_infoPtr, NULL); return status; } |