aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp/png_loader.cpp
diff options
context:
space:
mode:
authorColin Snover2017-10-29 13:15:38 -0500
committerEugene Sandulenko2018-08-18 13:49:15 +0200
commitc240af799fa61f647073cfa5b94d76b26880c143 (patch)
tree1ac2d1247fcf43e7e4160ce1d0a0416b6ab8445e /backends/platform/psp/png_loader.cpp
parent7016c86d5348586fd798650f46804665f207dcd0 (diff)
downloadscummvm-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/png_loader.cpp')
-rw-r--r--backends/platform/psp/png_loader.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}