mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-16 03:03:19 +00:00
Merge branch 'master' of https://github.com/raysan5/raylib
This commit is contained in:
commit
d3fe9e5036
@ -827,6 +827,8 @@ int GetScreenHeight(void)
|
||||
// Get current render width which is equal to screen width*dpi scale
|
||||
int GetRenderWidth(void)
|
||||
{
|
||||
if (CORE.Window.usingFbo) return CORE.Window.currentFbo.width;
|
||||
|
||||
int width = 0;
|
||||
#if defined(__APPLE__)
|
||||
Vector2 scale = GetWindowScaleDPI();
|
||||
@ -840,6 +842,8 @@ int GetRenderWidth(void)
|
||||
// Get current screen height which is equal to screen height*dpi scale
|
||||
int GetRenderHeight(void)
|
||||
{
|
||||
if (CORE.Window.usingFbo) return CORE.Window.currentFbo.height;
|
||||
|
||||
int height = 0;
|
||||
#if defined(__APPLE__)
|
||||
Vector2 scale = GetWindowScaleDPI();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user