We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b01c8a7 + bf536d6 commit c4d733eCopy full SHA for c4d733e
src/rcore.c
@@ -827,6 +827,8 @@ int GetScreenHeight(void)
827
// Get current render width which is equal to screen width*dpi scale
828
int GetRenderWidth(void)
829
{
830
+ if (CORE.Window.usingFbo) return CORE.Window.currentFbo.width;
831
+
832
int width = 0;
833
#if defined(__APPLE__)
834
Vector2 scale = GetWindowScaleDPI();
@@ -840,6 +842,8 @@ int GetRenderWidth(void)
840
842
// Get current screen height which is equal to screen height*dpi scale
841
843
int GetRenderHeight(void)
844
845
+ if (CORE.Window.usingFbo) return CORE.Window.currentFbo.height;
846
847
int height = 0;
848
849
0 commit comments