void OSystem_IPHONE::handleEvent_orientationChanged(int orientation) { //printf("Orientation: %i\n", orientation); ScreenOrientation newOrientation; switch (orientation) { case 1: newOrientation = kScreenOrientationPortrait; break; case 3: newOrientation = kScreenOrientationLandscape; break; case 4: newOrientation = kScreenOrientationFlippedLandscape; break; default: return; } if (_screenOrientation != newOrientation) { _screenOrientation = newOrientation; updateOutputSurface(); dirtyFullScreen(); if (_videoContext->overlayVisible) dirtyFullOverlayScreen(); updateScreen(); } }
void OSystem_IPHONE::clearOverlay() { //printf("clearOverlay()\n"); bzero(_overlayBuffer, _overlayWidth * _overlayHeight * sizeof(OverlayColor)); dirtyFullOverlayScreen(); }
void OSystem_IPHONE::showOverlay() { //printf("showOverlay()\n"); _overlayVisible = true; dirtyFullOverlayScreen(); iPhone_enableOverlay(true); }