mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
BACKENDS: Fix compilation.
This commit is contained in:
parent
3fe81198ff
commit
a72ab2f448
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user