diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-01-11 21:58:50 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2019-01-14 00:09:30 +0100 |
commit | 6c0098a3e64683f79e5dbbf601ac18d840a88726 (patch) | |
tree | 77f4d312dad1e424a8a47aeffe7926754b3f95eb /nx-X11/programs | |
parent | d175fd4c6d7872bf51c8509a678fecd84a14850a (diff) | |
download | nx-libs-6c0098a3e64683f79e5dbbf601ac18d840a88726.tar.gz nx-libs-6c0098a3e64683f79e5dbbf601ac18d840a88726.tar.bz2 nx-libs-6c0098a3e64683f79e5dbbf601ac18d840a88726.zip |
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.
Diffstat (limited to 'nx-X11/programs')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Extensions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Extensions.c b/nx-X11/programs/Xserver/hw/nxagent/Extensions.c index d4f195bb4..363992225 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Extensions.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Extensions.c @@ -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) && |