REVIEWED: Make sure all variables are initialized on definition, prioritize one line per variable definitions
This commit is contained in:
parent
6f5cabf60c
commit
5025009860
2 changed files with 55 additions and 28 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -428,7 +428,7 @@ void SetMouseCursor(int cursor)
|
|||
TRACELOG(LOG_WARNING, "SetMouseCursor() not implemented on target platform");
|
||||
}
|
||||
|
||||
// Get physical key name.
|
||||
// Get physical key name
|
||||
const char *GetKeyName(int key)
|
||||
{
|
||||
TRACELOG(LOG_WARNING, "GetKeyName() not implemented on target platform");
|
||||
|
|
|
|||
Loading…
Reference in a new issue