mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-20 14:03:40 -04:00
Update rcore.c
This commit is contained in:
@ -821,7 +821,7 @@ int GetRenderWidth(void)
|
|||||||
{
|
{
|
||||||
int width = 0;
|
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;
|
else width = CORE.Window.render.width;
|
||||||
|
|
||||||
return width;
|
return width;
|
||||||
@ -832,7 +832,7 @@ int GetRenderHeight(void)
|
|||||||
{
|
{
|
||||||
int height = 0;
|
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;
|
else height = CORE.Window.render.height;
|
||||||
|
|
||||||
return height;
|
return height;
|
||||||
|
|||||||
Reference in New Issue
Block a user