mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
IPHONE: Add a constructor to VideoContext.
This commit is contained in:
parent
5ae958bcf3
commit
97feac5342
@ -56,6 +56,12 @@ enum GraphicsModes {
|
||||
};
|
||||
|
||||
struct VideoContext {
|
||||
VideoContext() : screenWidth(), screenHeight(), overlayVisible(false),
|
||||
overlayWidth(), overlayHeight(), mouseX(), mouseY(),
|
||||
mouseHotspotX(), mouseHotspotY(), mouseWidth(), mouseHeight(),
|
||||
mouseIsVisible(), graphicsMode(kGraphicsModeLinear), shakeOffsetY() {
|
||||
}
|
||||
|
||||
// Game screen state
|
||||
uint screenWidth, screenHeight;
|
||||
|
||||
|
@ -225,10 +225,6 @@ const char *iPhone_getDocumentsDir() {
|
||||
_overlayTexture = 0;
|
||||
_mouseCursorTexture = 0;
|
||||
|
||||
memset(&_videoContext, 0, sizeof(_videoContext));
|
||||
_videoContext.graphicsMode = kGraphicsModeLinear;
|
||||
_videoContext.overlayVisible = false;
|
||||
|
||||
_gameScreenVertCoords[0] = _gameScreenVertCoords[1] =
|
||||
_gameScreenVertCoords[2] = _gameScreenVertCoords[3] =
|
||||
_gameScreenVertCoords[4] = _gameScreenVertCoords[5] =
|
||||
|
Loading…
x
Reference in New Issue
Block a user