소스 검색

fix introduced bug

hurikhan 10 년 전
부모
커밋
52a4e8495c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      platform/x11/os_x11.cpp

+ 1 - 1
platform/x11/os_x11.cpp

@@ -1286,7 +1286,7 @@ void OS_X11::process_xevents() {
 			motion_event.mouse_motion.x=pos.x;
 			motion_event.mouse_motion.y=pos.y;
 			input->set_mouse_pos(pos);
-			motion_event.mouse_motion.global_x=pos.y;
+			motion_event.mouse_motion.global_x=pos.x;
 			motion_event.mouse_motion.global_y=pos.y;
 			motion_event.mouse_motion.speed_x=input->get_mouse_speed().x;
 			motion_event.mouse_motion.speed_y=input->get_mouse_speed().y;