diff options
| author | Ray <[email protected]> | 2023-11-09 23:35:24 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-11-09 23:35:24 +0100 |
| commit | 80aafdb38f6ce665e9ac7c95dd8f5fe84f982692 (patch) | |
| tree | c5e89f680ea1b91b6beb5c3d11217c968b64d6cd /src | |
| parent | c471d22965ee214ff573321a01195360291c794b (diff) | |
| download | raylib-80aafdb38f6ce665e9ac7c95dd8f5fe84f982692.tar.gz raylib-80aafdb38f6ce665e9ac7c95dd8f5fe84f982692.zip | |
REVIEWED: `BeginScissorMode()` #3510
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rcore.c b/src/rcore.c index aa254010..895460f3 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1093,13 +1093,13 @@ void BeginScissorMode(int x, int y, int width, int height) rlEnableScissorTest(); #if defined(__APPLE__) - if (CORE.Window.usingFbo) + if (!CORE.Window.usingFbo) { Vector2 scale = GetWindowScaleDPI(); rlScissor((int)(x*scale.x), (int)(GetScreenHeight()*scale.y - (((y + height)*scale.y))), (int)(width*scale.x), (int)(height*scale.y)); } #else - if (CORE.Window.usingFbo && ((CORE.Window.flags & FLAG_WINDOW_HIGHDPI) > 0)) + if (!CORE.Window.usingFbo && ((CORE.Window.flags & FLAG_WINDOW_HIGHDPI) > 0)) { Vector2 scale = GetWindowScaleDPI(); rlScissor((int)(x*scale.x), (int)(CORE.Window.currentFbo.height - (y + height)*scale.y), (int)(width*scale.x), (int)(height*scale.y)); |
