aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYotam Barnoy2010-10-19 07:37:50 +0000
committerYotam Barnoy2010-10-19 07:37:50 +0000
commit00bf6ab791f89db92052c62186465daf33f15e05 (patch)
tree907680289bc7d4f5a022c29d8c58c8b9507ca0c8
parentc1a3689a5d561f3a6779282c23b9bbed75bbeccd (diff)
downloadscummvm-rg350-00bf6ab791f89db92052c62186465daf33f15e05.tar.gz
scummvm-rg350-00bf6ab791f89db92052c62186465daf33f15e05.tar.bz2
scummvm-rg350-00bf6ab791f89db92052c62186465daf33f15e05.zip
PSP: add missing return statements to image viewer
svn-id: r53601
-rw-r--r--backends/platform/psp/image_viewer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/psp/image_viewer.cpp b/backends/platform/psp/image_viewer.cpp
index f3bcd988a2..791a5cc0e3 100644
--- a/backends/platform/psp/image_viewer.cpp
+++ b/backends/platform/psp/image_viewer.cpp
@@ -75,16 +75,19 @@ bool ImageViewer::load(int imageNum) {
sprintf(error, "Cannot display %s. Not a proper PNG file", specificImageName.c_str());
GUI::TimedMessageDialog dialog(error, 4000);
dialog.runModal();
+ return false;
} else if (status == PngLoader::OUT_OF_MEMORY) {
sprintf(error, "Out of memory loading %s. Try making the image smaller", specificImageName.c_str());
GUI::TimedMessageDialog dialog(error, 4000);
dialog.runModal();
+ return false;
}
// try to load the image file
if (!image.load()) {
sprintf(error, "Cannot display %s. Not a proper PNG file", specificImageName.c_str());
GUI::TimedMessageDialog dialog(error, 4000);
dialog.runModal();
+ return false;
}
setConstantRendererOptions();