From 80aafdb38f6ce665e9ac7c95dd8f5fe84f982692 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 9 Nov 2023 23:35:24 +0100 Subject: [PATCH] REVIEWED: `BeginScissorMode()` #3510 --- src/rcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index aa254010db82..895460f3be01 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));