mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-04-25 00:41:15 +00:00
- Forgot the defines.
This commit is contained in:
parent
d8d72f5d75
commit
dde31dcac4
2 changed files with 4 additions and 0 deletions
|
@ -560,7 +560,9 @@ void OpenGLFrameBuffer::ScaleCoordsFromWindow(int16_t &x, int16_t &y)
|
||||||
int letterboxWidth = GLRenderer->mOutputLetterbox.width;
|
int letterboxWidth = GLRenderer->mOutputLetterbox.width;
|
||||||
int letterboxHeight = GLRenderer->mOutputLetterbox.height;
|
int letterboxHeight = GLRenderer->mOutputLetterbox.height;
|
||||||
|
|
||||||
|
#if !defined(_WIN32) && !defined(__APPLE__)
|
||||||
SDLGLFB::ScaleCoordsFromWindow(x,y);
|
SDLGLFB::ScaleCoordsFromWindow(x,y);
|
||||||
|
#endif
|
||||||
// Subtract the LB video mode letterboxing
|
// Subtract the LB video mode letterboxing
|
||||||
if (IsFullscreen())
|
if (IsFullscreen())
|
||||||
y -= (GetTrueHeight() - VideoHeight) / 2;
|
y -= (GetTrueHeight() - VideoHeight) / 2;
|
||||||
|
|
|
@ -3818,7 +3818,9 @@ void OpenGLSWFrameBuffer::ScaleCoordsFromWindow(int16_t &x, int16_t &y)
|
||||||
int letterboxX, letterboxY, letterboxWidth, letterboxHeight;
|
int letterboxX, letterboxY, letterboxWidth, letterboxHeight;
|
||||||
GetLetterboxFrame(letterboxX, letterboxY, letterboxWidth, letterboxHeight);
|
GetLetterboxFrame(letterboxX, letterboxY, letterboxWidth, letterboxHeight);
|
||||||
|
|
||||||
|
#if !defined(_WIN32) && !defined(__APPLE__)
|
||||||
SDLGLFB::ScaleCoordsFromWindow(x,y);
|
SDLGLFB::ScaleCoordsFromWindow(x,y);
|
||||||
|
#endif
|
||||||
// Subtract the LB video mode letterboxing
|
// Subtract the LB video mode letterboxing
|
||||||
if (IsFullscreen())
|
if (IsFullscreen())
|
||||||
y -= (GetTrueHeight() - VideoHeight) / 2;
|
y -= (GetTrueHeight() - VideoHeight) / 2;
|
||||||
|
|
Loading…
Reference in a new issue