Update monitor information every frame
This commit is contained in:
parent
50d0da2604
commit
f3b7831ccc
|
|
@ -56,9 +56,7 @@ int main(void)
|
|||
// Update
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Rebuild monitors array with the new monitor count
|
||||
if (monitorCount != GetMonitorCount())
|
||||
{
|
||||
// Rebuild monitors array every frame
|
||||
monitorCount = GetMonitorCount();
|
||||
for (int i = 0; i < monitorCount; i++)
|
||||
{
|
||||
|
|
@ -72,7 +70,6 @@ int main(void)
|
|||
GetMonitorRefreshRate(i)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (IsKeyPressed(KEY_ENTER) && monitorCount > 1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user