mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-13 02:55:35 +00:00
Fixed a bug where wrong resolutions were saved in the DisplayResolution<->resolution_index mapping.
This commit is contained in:
parent
fde2f6daf6
commit
ad6306bc9c
|
@ -68,7 +68,10 @@ namespace OpenTK.Platform.X11
|
||||||
available_res.Add(new DisplayResolution(size.Width, size.Height, depth, (float)rate));
|
available_res.Add(new DisplayResolution(size.Width, size.Height, depth, (float)rate));
|
||||||
}
|
}
|
||||||
// Keep the index of this resolution - we will need it for resolution changes later.
|
// Keep the index of this resolution - we will need it for resolution changes later.
|
||||||
screenResolutionToIndex[screen].Add(available_res[resolution_count], resolution_count);
|
foreach (int depth in depths)
|
||||||
|
screenResolutionToIndex[screen].Add(new DisplayResolution(size.Width, size.Height, depth, 0),
|
||||||
|
resolution_count);
|
||||||
|
|
||||||
++resolution_count;
|
++resolution_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue