IPHONE: Add a constructor to VideoContext.

This commit is contained in:
Johannes Schickel 2012-02-23 20:59:26 +01:00
parent 5ae958bcf3
commit 97feac5342
2 changed files with 6 additions and 4 deletions

View File

@ -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;

View File

@ -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] =