Browse Source

Fixed a compile bug

Josh Yelon 18 years ago
parent
commit
3af4f36127
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/glxdisplay/glxGraphicsWindow.cxx

+ 2 - 2
panda/src/glxdisplay/glxGraphicsWindow.cxx

@@ -1150,8 +1150,8 @@ poll_raw_mice()
     }
     }
     const input_event *events = (const input_event *)(inf._io_buffer.c_str());
     const input_event *events = (const input_event *)(inf._io_buffer.c_str());
     GraphicsWindowInputDevice &dev = _input_devices[inf._input_device_index];
     GraphicsWindowInputDevice &dev = _input_devices[inf._input_device_index];
-    int x = _input_devices[i].get_raw_pointer().get_x();
-    int y = _input_devices[i].get_raw_pointer().get_y();
+    int x = dev.get_raw_pointer().get_x();
+    int y = dev.get_raw_pointer().get_y();
     for (int i=0; i<nevents; i++) {
     for (int i=0; i<nevents; i++) {
       if (events[i].type == EV_REL) {
       if (events[i].type == EV_REL) {
 	if (events[i].code == REL_X) x += events[i].value;
 	if (events[i].code == REL_X) x += events[i].value;