mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-02 04:09:18 -05:00
REVIEWED: Make sure all variables are initialized on definition, prioritize one line per variable definitions
This commit is contained in:
@ -894,7 +894,8 @@ Vector2 GetMonitorPosition(int monitor)
|
||||
|
||||
if ((monitor >= 0) && (monitor < monitorCount))
|
||||
{
|
||||
int x, y;
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
glfwGetMonitorPos(monitors[monitor], &x, &y);
|
||||
|
||||
return (Vector2){ (float)x, (float)y };
|
||||
|
||||
Reference in New Issue
Block a user