[Scummvm-cvs-logs] SF.net SVN: scummvm:[38234] scummvm/branches/branch-0-13-0/backends/ platform/iphone
vinterstum at users.sourceforge.net
vinterstum at users.sourceforge.net
Sun Feb 15 13:53:23 CET 2009
Revision: 38234
http://scummvm.svn.sourceforge.net/scummvm/?rev=38234&view=rev
Author: vinterstum
Date: 2009-02-15 12:53:23 +0000 (Sun, 15 Feb 2009)
Log Message:
-----------
Implemented getScreenChangeID() for the iPhone backend, which fixes the overlay issues for 640x480 games
Modified Paths:
--------------
scummvm/branches/branch-0-13-0/backends/platform/iphone/osys_iphone.cpp
scummvm/branches/branch-0-13-0/backends/platform/iphone/osys_iphone.h
Modified: scummvm/branches/branch-0-13-0/backends/platform/iphone/osys_iphone.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/backends/platform/iphone/osys_iphone.cpp 2009-02-15 12:37:25 UTC (rev 38233)
+++ scummvm/branches/branch-0-13-0/backends/platform/iphone/osys_iphone.cpp 2009-02-15 12:53:23 UTC (rev 38234)
@@ -64,7 +64,7 @@
_secondaryTapped(false), _lastSecondaryTap(0), _screenOrientation(kScreenOrientationFlippedLandscape),
_needEventRestPeriod(false), _mouseClickAndDragEnabled(false), _touchpadModeEnabled(true),
_gestureStartX(-1), _gestureStartY(-1), _fullScreenIsDirty(false), _fullScreenOverlayIsDirty(false),
- _mouseDirty(false), _timeSuspended(0), _lastDragPosX(-1), _lastDragPosY(-1)
+ _mouseDirty(false), _timeSuspended(0), _lastDragPosX(-1), _lastDragPosY(-1), _screenChangeCount(0)
{
_queuedInputEvent.type = (Common::EventType)0;
@@ -136,7 +136,7 @@
}
void OSystem_IPHONE::initSize(uint width, uint height) {
- printf("initSize(%i, %i)\n", width, height);
+ //printf("initSize(%i, %i)\n", width, height);
_screenWidth = width;
_screenHeight = height;
@@ -164,6 +164,7 @@
dirtyFullScreen();
_mouseVisible = false;
+ _screenChangeCount++;
updateScreen();
}
@@ -539,7 +540,7 @@
void OSystem_IPHONE::showOverlay() {
//printf("showOverlay()\n");
_overlayVisible = true;
- //dirtyFullOverlayScreen();
+ dirtyFullOverlayScreen();
}
void OSystem_IPHONE::hideOverlay() {
@@ -552,7 +553,7 @@
void OSystem_IPHONE::clearOverlay() {
//printf("clearOverlay()\n");
bzero(_overlayBuffer, _screenWidth * _screenHeight * sizeof(OverlayColor));
- //dirtyFullOverlayScreen();
+ dirtyFullOverlayScreen();
}
void OSystem_IPHONE::grabOverlay(OverlayColor *buf, int pitch) {
Modified: scummvm/branches/branch-0-13-0/backends/platform/iphone/osys_iphone.h
===================================================================
--- scummvm/branches/branch-0-13-0/backends/platform/iphone/osys_iphone.h 2009-02-15 12:37:25 UTC (rev 38233)
+++ scummvm/branches/branch-0-13-0/backends/platform/iphone/osys_iphone.h 2009-02-15 12:53:23 UTC (rev 38234)
@@ -109,7 +109,7 @@
ScreenOrientation _screenOrientation;
bool _fullScreenIsDirty;
bool _fullScreenOverlayIsDirty;
-
+ int _screenChangeCount;
FilesystemFactory *_fsFactory;
public:
@@ -165,7 +165,7 @@
virtual void setupMixer(void);
virtual int getOutputSampleRate() const;
virtual void setTimerCallback(TimerProc callback, int interval);
-
+ virtual int getScreenChangeID() const { return _screenChangeCount; }
virtual void quit();
FilesystemFactory *getFilesystemFactory() { return _fsFactory; }
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