Commit 6c0098a3 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Extensions.c: fix first resolution being ignored

Minor fix: The loop always started at index 3, comparing against the value at index 2. So the resolution at index 1 (320x240) was never taken into account for anything.
parent d175fd4c
......@@ -318,10 +318,10 @@ static int nxagentRandRInitSizes(ScreenPtr pScreen)
* Compute default size.
*/
w[0] = w[2];
h[0] = h[2];
w[0] = w[1];
h[0] = h[1];
for (i = 3; i < nSizes - 1; i++)
for (i = 2; i < nSizes - 1; i++)
{
if ((w[i] <= maxWidth * 3 / 4) &&
(h[i] <= maxHeight * 3 / 4) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment