fix: remove dead variable in GetRender and change an unimplementation log's level from INFO to WARNING

This commit is contained in:
Monjaris 2026-03-27 17:45:56 +04:00
parent ba83bd33f3
commit e61832830a

View File

@ -819,23 +819,15 @@ int GetScreenHeight(void)
// Get current render width which is equal to screen width*dpi scale // Get current render width which is equal to screen width*dpi scale
int GetRenderWidth(void) int GetRenderWidth(void)
{ {
int width = 0;
if (CORE.Window.usingFbo) return CORE.Window.currentFbo.width; if (CORE.Window.usingFbo) return CORE.Window.currentFbo.width;
else width = CORE.Window.render.width; else return CORE.Window.render.width;
return width;
} }
// Get current screen height which is equal to screen height*dpi scale // Get current screen height which is equal to screen height*dpi scale
int GetRenderHeight(void) int GetRenderHeight(void)
{ {
int height = 0;
if (CORE.Window.usingFbo) return CORE.Window.currentFbo.height; if (CORE.Window.usingFbo) return CORE.Window.currentFbo.height;
else height = CORE.Window.render.height; else return CORE.Window.render.height;
return height;
} }
// Enable waiting for events on EndDrawing(), no automatic event polling // Enable waiting for events on EndDrawing(), no automatic event polling
@ -1219,7 +1211,7 @@ VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device)
// Unload VR stereo config properties // Unload VR stereo config properties
void UnloadVrStereoConfig(VrStereoConfig config) void UnloadVrStereoConfig(VrStereoConfig config)
{ {
TRACELOG(LOG_INFO, "UnloadVrStereoConfig not implemented in rcore.c"); TRACELOG(LOG_WARNING, "UnloadVrStereoConfig not implemented in rcore.c");
} }
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------