diff options
| author | Ray <[email protected]> | 2021-11-25 01:07:54 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-11-25 01:07:54 +0100 |
| commit | 9088135b497798aabf44f315b9795d26a127d159 (patch) | |
| tree | 2332e07a5b1d9ac5f39d65666b69d525ad583dc2 /src | |
| parent | b248a00c9043ff08b5bca922ab82080978dd4306 (diff) | |
| download | raylib-9088135b497798aabf44f315b9795d26a127d159.tar.gz raylib-9088135b497798aabf44f315b9795d26a127d159.zip | |
REVIEWED: Formating and comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/raylib.h | 4 | ||||
| -rw-r--r-- | src/rcore.c | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/raylib.h b/src/raylib.h index 8f01e483..ec17953c 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -928,8 +928,8 @@ RLAPI void SetWindowSize(int width, int height); // Set window RLAPI void *GetWindowHandle(void); // Get native window handle RLAPI int GetScreenWidth(void); // Get current screen width RLAPI int GetScreenHeight(void); // Get current screen height -RLAPI int GetRenderWidth(void); // Get current render width -RLAPI int GetRenderHeight(void); // Get current render height +RLAPI int GetRenderWidth(void); // Get current render width (it considers HiDPI) +RLAPI int GetRenderHeight(void); // Get current render height (it considers HiDPI) RLAPI int GetMonitorCount(void); // Get number of connected monitors RLAPI int GetCurrentMonitor(void); // Get current connected monitor RLAPI Vector2 GetMonitorPosition(int monitor); // Get specified monitor position diff --git a/src/rcore.c b/src/rcore.c index 58bbbbf4..7f5d9d90 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -2186,16 +2186,11 @@ void BeginScissorMode(int x, int y, int width, int height) #if defined(__APPLE__) Vector2 scale = GetWindowScaleDPI(); - rlScissor( - (int)(x*scale.x), - (int)(GetScreenHeight() * scale.y - (((y + height) * scale.y))), - (int)(width*scale.x), - (int)(height*scale.y)); + 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.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)); } else |
