- Forgot the defines.

This commit is contained in:
drfrag 2020-03-06 15:36:37 +01:00
parent d8d72f5d75
commit dde31dcac4
2 changed files with 4 additions and 0 deletions

View file

@ -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;

View file

@ -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;