BACKENDS: Fix compilation.

This commit is contained in:
Johannes Schickel 2011-08-09 14:56:38 +02:00
parent 3fe81198ff
commit a72ab2f448
4 changed files with 3 additions and 7 deletions

View File

@ -141,7 +141,7 @@ void GPHGraphicsManager::initSize(uint w, uint h, const Graphics::PixelFormat *f
if (w > 320 || h > 240){
setGraphicsMode(GFX_HALF);
setGraphicsModeIntern();
_sdlEventSource->toggleMouseGrab();
_eventSource->toggleMouseGrab();
}
_videoMode.overlayWidth = 320;
@ -585,7 +585,6 @@ void GPHGraphicsManager::transformMouseCoordinates(Common::Point &point) {
point.x *= 2;
point.y *= 2;
}
g_system->getEventManager()->pushEvent(newEvent);
point.x /= _videoMode.scaleFactor;
point.y /= _videoMode.scaleFactor;
if (_videoMode.aspectRatioCorrection)

View File

@ -134,7 +134,7 @@ void LinuxmotoSdlGraphicsManager::initSize(uint w, uint h) {
if (w > 320 || h > 240) {
setGraphicsMode(GFX_HALF);
setGraphicsModeIntern();
_sdlEventSource->toggleMouseGrab();
_eventSource->toggleMouseGrab();
}
_transactionDetails.sizeChanged = true;
@ -484,7 +484,6 @@ void LinuxmotoSdlGraphicsManager::transformMouseCoordinates(Common::Point &point
point.x *= 2;
point.y *= 2;
}
g_system->getEventManager()->pushEvent(newEvent);
point.x /= _videoMode.scaleFactor;
point.y /= _videoMode.scaleFactor;
if (_videoMode.aspectRatioCorrection)

View File

@ -934,7 +934,7 @@ bool WINCESdlGraphicsManager::loadGFXMode() {
_toolbarHigh = NULL;
// keyboard cursor control, some other better place for it?
_sdlEventSource->resetKeyboadEmulation(_videoMode.screenWidth * _scaleFactorXm / _scaleFactorXd - 1, _videoMode.screenHeight * _scaleFactorXm / _scaleFactorXd - 1);
_eventSource->resetKeyboadEmulation(_videoMode.screenWidth * _scaleFactorXm / _scaleFactorXd - 1, _videoMode.screenHeight * _scaleFactorXm / _scaleFactorXd - 1);
return true;
}

View File

@ -160,8 +160,6 @@ public:
virtual void transformMouseCoordinates(Common::Point &point);
virtual void transformMouseCoordinates(Common::Point &point);
private:
bool update_scalers();
void drawToolbarMouse(SDL_Surface *surf, bool draw);