[Scummvm-cvs-logs] SF.net SVN: scummvm:[53460] scummvm/trunk/backends/platform/psp
bluddy at users.sourceforge.net
bluddy at users.sourceforge.net
Fri Oct 15 00:11:18 CEST 2010
Revision: 53460
http://scummvm.svn.sourceforge.net/scummvm/?rev=53460&view=rev
Author: bluddy
Date: 2010-10-14 22:11:17 +0000 (Thu, 14 Oct 2010)
Log Message:
-----------
PSP: made image viewer reset to the first image between engine loads
Modified Paths:
--------------
scummvm/trunk/backends/platform/psp/image_viewer.cpp
scummvm/trunk/backends/platform/psp/image_viewer.h
scummvm/trunk/backends/platform/psp/osys_psp.cpp
scummvm/trunk/backends/platform/psp/osys_psp.h
Modified: scummvm/trunk/backends/platform/psp/image_viewer.cpp
===================================================================
--- scummvm/trunk/backends/platform/psp/image_viewer.cpp 2010-10-14 20:44:44 UTC (rev 53459)
+++ scummvm/trunk/backends/platform/psp/image_viewer.cpp 2010-10-14 22:11:17 UTC (rev 53460)
@@ -118,6 +118,10 @@
_init = false;
}
+void ImageViewer::resetOnEngineDone() {
+ _imageNum = 0;
+}
+
void ImageViewer::setVisible(bool visible) {
DEBUG_ENTER_FUNC();
if (_visible == visible)
Modified: scummvm/trunk/backends/platform/psp/image_viewer.h
===================================================================
--- scummvm/trunk/backends/platform/psp/image_viewer.h 2010-10-14 20:44:44 UTC (rev 53459)
+++ scummvm/trunk/backends/platform/psp/image_viewer.h 2010-10-14 22:11:17 UTC (rev 53460)
@@ -82,6 +82,7 @@
bool isDirty() { return _dirty; }
void setDirty() { _dirty = true; }
void setClean() { _dirty = false; }
+ void resetOnEngineDone();
void handleEvent(uint32 event);
Modified: scummvm/trunk/backends/platform/psp/osys_psp.cpp
===================================================================
--- scummvm/trunk/backends/platform/psp/osys_psp.cpp 2010-10-14 20:44:44 UTC (rev 53459)
+++ scummvm/trunk/backends/platform/psp/osys_psp.cpp 2010-10-14 22:11:17 UTC (rev 53460)
@@ -102,6 +102,12 @@
OSystem::initBackend();
}
+// Let's us know an engine
+void OSystem_PSP::engineDone() {
+ // for now, all we need is to reset the image number on the viewer
+ _imageViewer.resetOnEngineDone();
+}
+
bool OSystem_PSP::hasFeature(Feature f) {
return (f == kFeatureOverlaySupportsAlpha || f == kFeatureCursorHasPalette);
}
Modified: scummvm/trunk/backends/platform/psp/osys_psp.h
===================================================================
--- scummvm/trunk/backends/platform/psp/osys_psp.h 2010-10-14 20:44:44 UTC (rev 53459)
+++ scummvm/trunk/backends/platform/psp/osys_psp.h 2010-10-14 22:11:17 UTC (rev 53460)
@@ -149,6 +149,7 @@
Common::SaveFileManager *getSavefileManager() { return _savefile; }
FilesystemFactory *getFilesystemFactory() { return &PSPFilesystemFactory::instance(); }
void getTimeAndDate(TimeDate &t) const;
+ virtual void engineDone();
void quit();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list