Permalink
Browse files

PSP: Fix compilation failures when debug printing is enabled

  • Loading branch information...
csnover authored and sev- committed Oct 29, 2017
1 parent 7016c86 commit c240af799fa61f647073cfa5b94d76b26880c143
@@ -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
@@ -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);
}
@@ -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;
}

0 comments on commit c240af7

Please sign in to comment.