mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
revert the 'reverse Y axis' hack
svn-id: r10594
This commit is contained in:
parent
93f5234e84
commit
4a84b356f8
@ -564,13 +564,6 @@ void OSystem_SDL_Common::fillMouseEvent(Event &event, int x, int y) {
|
||||
event.mouse.x = x;
|
||||
event.mouse.y = y;
|
||||
|
||||
// FIXME: HACK HACK HACK. This works around an odd problem in the OpenGL
|
||||
// variant of the SDL backend, where the mouse y coordinates are reversed.
|
||||
// Since the OpenGL variants is quite hackish anyway, we have to hard code
|
||||
// here a screen height of 480).
|
||||
if (_mode_flags & DF_REVERSE_Y)
|
||||
event.mouse.y = 480 - event.mouse.y;
|
||||
|
||||
// Update the "keyboard mouse" coords
|
||||
km.x = event.mouse.x;
|
||||
km.y = event.mouse.y;
|
||||
|
@ -145,8 +145,7 @@ protected:
|
||||
|
||||
enum {
|
||||
DF_WANT_RECT_OPTIM = 1 << 0,
|
||||
DF_UPDATE_EXPAND_1_PIXEL = 1 << 1,
|
||||
DF_REVERSE_Y = 1 << 2
|
||||
DF_UPDATE_EXPAND_1_PIXEL = 1 << 1
|
||||
};
|
||||
|
||||
bool _forceFull; // Force full redraw on next update_screen
|
||||
|
@ -102,7 +102,6 @@ void OSystem_SDL_OpenGL::load_gfx_mode() {
|
||||
switch(_mode) {
|
||||
case GFX_BILINEAR:
|
||||
_usingOpenGL = true;
|
||||
_mode_flags |= DF_REVERSE_Y;
|
||||
_mode = GFX_NORMAL;
|
||||
break;
|
||||
|
||||
@ -162,7 +161,6 @@ void OSystem_SDL_OpenGL::load_gfx_mode() {
|
||||
|
||||
if (_mode != GFX_NORMAL) {
|
||||
_usingOpenGL = false;
|
||||
_mode_flags &= ~DF_REVERSE_Y;
|
||||
}
|
||||
|
||||
//
|
||||
@ -642,7 +640,6 @@ uint32 OSystem_SDL_OpenGL::property(int param, Property *value) {
|
||||
if (!_usingOpenGL) {
|
||||
_usingOpenGL = true;
|
||||
_mode = GFX_NORMAL;
|
||||
_mode_flags |= DF_REVERSE_Y;
|
||||
_scaleFactor = 1;
|
||||
_scaler_proc = Normal1x;
|
||||
hotswap_gfx_mode();
|
||||
@ -663,7 +660,6 @@ uint32 OSystem_SDL_OpenGL::property(int param, Property *value) {
|
||||
if (_usingOpenGL) {
|
||||
_glBilinearFilter = false;
|
||||
_usingOpenGL = false;
|
||||
_mode_flags &= ~DF_REVERSE_Y;
|
||||
}
|
||||
|
||||
hotswap_gfx_mode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user