Permalink
Browse files

Merge a7ddf1d into 91b17af

  • Loading branch information...
ccawley2011 committed Aug 18, 2018
2 parents 91b17af + a7ddf1d commit e05d17962a1a1c52036ee05eeafd3fcc33f25a18
@@ -117,24 +117,6 @@ void DINGUXSdlGraphicsManager::setGraphicsModeIntern() {
blitCursor();
}

void DINGUXSdlGraphicsManager::initSize(uint w, uint h) {
assert(_transactionMode == kTransactionActive);

// Avoid redundant res changes
if ((int)w == _videoMode.screenWidth && (int)h == _videoMode.screenHeight)
return;

_videoMode.screenWidth = w;
_videoMode.screenHeight = h;
if (w > 320 || h > 240) {
setGraphicsMode(GFX_HALF);
setGraphicsModeIntern();
_window->toggleMouseGrab();
}

_transactionDetails.sizeChanged = true;
}

void DINGUXSdlGraphicsManager::drawMouse() {
if (!_cursorVisible || !_mouseSurface) {
_mouseBackup.x = _mouseBackup.y = _mouseBackup.w = _mouseBackup.h = 0;
@@ -41,9 +41,7 @@ class DINGUXSdlGraphicsManager : public SurfaceSdlGraphicsManager {
bool getFeatureState(OSystem::Feature f) const override;
int getDefaultGraphicsMode() const override;

void initSize(uint w, uint h) override;
const OSystem::GraphicsMode *getSupportedGraphicsModes() const override;
bool setGraphicsMode(const char *name) override;
bool setGraphicsMode(int mode) override;
void setGraphicsModeIntern() override;
void internUpdateScreen() override;

0 comments on commit e05d179

Please sign in to comment.