mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-23 09:19:55 +00:00
LIBRETRO: limit cursor scaling to overlays
Some checks failed
CI / Windows (arm64, --enable-discord --enable-faad --enable-gif --enable-mikmod --enable-mpeg2 --enable-vpx, arm64, arm64-windows) (push) Has been cancelled
CI / Windows (x64, --enable-discord --enable-faad --enable-gif --enable-mikmod --enable-mpeg2 --enable-vpx, x64, x64-windows) (push) Has been cancelled
CI / Windows (x86, --enable-discord --enable-faad --enable-gif --enable-mikmod --enable-mpeg2 --enable-vpx, win32, x86-windows, true) (push) Has been cancelled
CI / Xcode (-scheme ScummVM-iOS CODE_SIGN_IDENTITY="" CODE_SIGNING_ALLOWED=NO, --use-xcframework --enable-faad --enable-gif --enable-mikmod --enable-mpeg2 --enable-vpx --disable-nasm --disable-taskbar --disable-tts, https://downloads.scummvm.org/frs/build/s… (push) Has been cancelled
CI / Xcode (a52dec faad2 flac fluid-synth freetype fribidi giflib jpeg mad libmikmod libmpeg2 libogg libpng libvorbis libvpx sdl2 sdl2_net theora, -scheme ScummVM-macOS -destination 'platform=macOS,arch=x86_64', --disable-nasm --enable-faad --enable-gif --e… (push) Has been cancelled
CI / Ubuntu (g++-4.8 liba52-dev libcurl4-openssl-dev libfaad-dev libflac-dev libfluidsynth-dev libfreetype6-dev libfribidi-dev libgif-dev libgtk-3-dev libjpeg-turbo8-dev libmad0-dev libmikmod-dev libmpeg2-4-dev libogg-dev libpng-dev libsdl-net1.2-dev libsdl… (push) Has been cancelled
CI / Ubuntu (liba52-dev libcurl4-openssl-dev libfaad-dev libflac-dev libfluidsynth-dev libfreetype6-dev libfribidi-dev libgif-dev libgtk-3-dev libjpeg-turbo8-dev libmad0-dev libmikmod-dev libmpeg2-4-dev libogg-dev libpng-dev libsdl2-dev libsdl2-net-dev libs… (push) Has been cancelled
Some checks failed
CI / Windows (arm64, --enable-discord --enable-faad --enable-gif --enable-mikmod --enable-mpeg2 --enable-vpx, arm64, arm64-windows) (push) Has been cancelled
CI / Windows (x64, --enable-discord --enable-faad --enable-gif --enable-mikmod --enable-mpeg2 --enable-vpx, x64, x64-windows) (push) Has been cancelled
CI / Windows (x86, --enable-discord --enable-faad --enable-gif --enable-mikmod --enable-mpeg2 --enable-vpx, win32, x86-windows, true) (push) Has been cancelled
CI / Xcode (-scheme ScummVM-iOS CODE_SIGN_IDENTITY="" CODE_SIGNING_ALLOWED=NO, --use-xcframework --enable-faad --enable-gif --enable-mikmod --enable-mpeg2 --enable-vpx --disable-nasm --disable-taskbar --disable-tts, https://downloads.scummvm.org/frs/build/s… (push) Has been cancelled
CI / Xcode (a52dec faad2 flac fluid-synth freetype fribidi giflib jpeg mad libmikmod libmpeg2 libogg libpng libvorbis libvpx sdl2 sdl2_net theora, -scheme ScummVM-macOS -destination 'platform=macOS,arch=x86_64', --disable-nasm --enable-faad --enable-gif --e… (push) Has been cancelled
CI / Ubuntu (g++-4.8 liba52-dev libcurl4-openssl-dev libfaad-dev libflac-dev libfluidsynth-dev libfreetype6-dev libfribidi-dev libgif-dev libgtk-3-dev libjpeg-turbo8-dev libmad0-dev libmikmod-dev libmpeg2-4-dev libogg-dev libpng-dev libsdl-net1.2-dev libsdl… (push) Has been cancelled
CI / Ubuntu (liba52-dev libcurl4-openssl-dev libfaad-dev libflac-dev libfluidsynth-dev libfreetype6-dev libfribidi-dev libgif-dev libgtk-3-dev libjpeg-turbo8-dev libmad0-dev libmikmod-dev libmpeg2-4-dev libogg-dev libpng-dev libsdl2-dev libsdl2-net-dev libs… (push) Has been cancelled
As game screen is always drawn at original resolution
This commit is contained in:
parent
d0d9dffe21
commit
9625b336e2
@ -55,7 +55,7 @@ void LibretroOpenGLGraphics::overrideCursorScaling(){
|
||||
OpenGL::OpenGLGraphicsManager::recalculateCursorScaling();
|
||||
|
||||
if (_cursor){
|
||||
const frac_t screenScaleFactor = _cursorDontScale ? intToFrac(1) : intToFrac(getWindowHeight()) / 200; /* hard coded as base resolution 320x200 is hard coded upstream */
|
||||
const frac_t screenScaleFactor = (_cursorDontScale || ! _overlayVisible) ? intToFrac(1) : intToFrac(getWindowHeight()) / 200; /* hard coded as base resolution 320x200 is hard coded upstream */
|
||||
|
||||
_cursorHotspotXScaled = fracToInt(_cursorHotspotX * screenScaleFactor);
|
||||
_cursorWidthScaled = fracToDouble(_cursor->getWidth() * screenScaleFactor);
|
||||
|
@ -169,7 +169,7 @@ void LibretroGraphics::warpMouse(int x, int y) {
|
||||
}
|
||||
|
||||
void LibretroGraphics::overrideCursorScaling(){
|
||||
const frac_t screenScaleFactor = _cursorDontScale ? intToFrac(1) : intToFrac(getWindowHeight()) / 200; /* hard coded as base resolution 320x200 is hard coded upstream */
|
||||
const frac_t screenScaleFactor = (_cursorDontScale || ! _overlayVisible) ? intToFrac(1) : intToFrac(getWindowHeight()) / 200; /* hard coded as base resolution 320x200 is hard coded upstream */
|
||||
|
||||
_cursorHotspotXScaled = fracToInt(_cursorHotspotX * screenScaleFactor);
|
||||
_cursorWidthScaled = fracToDouble(_cursor.w * screenScaleFactor);
|
||||
|
Loading…
Reference in New Issue
Block a user