mirror of
https://github.com/raysan5/raylib.git
synced 2026-03-29 11:51:59 +00:00
Update rcore.c
This commit is contained in:
@@ -821,7 +821,7 @@ int GetRenderWidth(void)
|
||||
{
|
||||
int width = 0;
|
||||
|
||||
if (CORE.Window.usingFbo) return CORE.Window.currentFbo.width;
|
||||
if (CORE.Window.usingFbo) width = CORE.Window.currentFbo.width;
|
||||
else width = CORE.Window.render.width;
|
||||
|
||||
return width;
|
||||
@@ -832,7 +832,7 @@ int GetRenderHeight(void)
|
||||
{
|
||||
int height = 0;
|
||||
|
||||
if (CORE.Window.usingFbo) return CORE.Window.currentFbo.height;
|
||||
if (CORE.Window.usingFbo) height = CORE.Window.currentFbo.height;
|
||||
else height = CORE.Window.render.height;
|
||||
|
||||
return height;
|
||||
|
||||
Reference in New Issue
Block a user