Update monitor information every frame
This commit is contained in:
parent
50d0da2604
commit
f3b7831ccc
|
|
@ -56,22 +56,19 @@ int main(void)
|
||||||
// Update
|
// Update
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Rebuild monitors array with the new monitor count
|
// Rebuild monitors array every frame
|
||||||
if (monitorCount != GetMonitorCount())
|
monitorCount = GetMonitorCount();
|
||||||
|
for (int i = 0; i < monitorCount; i++)
|
||||||
{
|
{
|
||||||
monitorCount = GetMonitorCount();
|
monitors[i] = (Monitor){
|
||||||
for (int i = 0; i < monitorCount; i++)
|
GetMonitorPosition(i),
|
||||||
{
|
GetMonitorName(i),
|
||||||
monitors[i] = (Monitor){
|
GetMonitorWidth(i),
|
||||||
GetMonitorPosition(i),
|
GetMonitorHeight(i),
|
||||||
GetMonitorName(i),
|
GetMonitorPhysicalWidth(i),
|
||||||
GetMonitorWidth(i),
|
GetMonitorPhysicalHeight(i),
|
||||||
GetMonitorHeight(i),
|
GetMonitorRefreshRate(i)
|
||||||
GetMonitorPhysicalWidth(i),
|
};
|
||||||
GetMonitorPhysicalHeight(i),
|
|
||||||
GetMonitorRefreshRate(i)
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsKeyPressed(KEY_ENTER) && monitorCount > 1)
|
if (IsKeyPressed(KEY_ENTER) && monitorCount > 1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user