Browse Source

Forgot to initialise the iterator index properly.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4938 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.2.90
Pierre Ossman 12 years ago
parent
commit
02dc813c92
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      unix/xserver/hw/vnc/XserverDesktop.cc

+ 1
- 1
unix/xserver/hw/vnc/XserverDesktop.cc View File

@@ -296,7 +296,7 @@ RRModePtr XserverDesktop::findRandRMode(RROutputPtr output, int width, int heigh
{
RRModePtr mode;

for (int i;i < output->numModes;i++) {
for (int i = 0;i < output->numModes;i++) {
if ((output->modes[i]->mode.width == width) &&
(output->modes[i]->mode.height == height))
return output->modes[i];

Loading…
Cancel
Save