mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
display: fix pointer casting in get_pointer()
This commit is contained in:
parent
7ed8b01a84
commit
ad8a6b4a88
@ -138,7 +138,7 @@ get_pointer(int device) const {
|
||||
double time = ClockObject::get_global_clock()->get_real_time();
|
||||
result._xpos = cpos.x;
|
||||
result._ypos = cpos.y;
|
||||
((GraphicsWindowInputDevice &)_input_devices[0]).set_pointer_in_window(result._xpos, result._ypos, time);
|
||||
((GraphicsWindowInputDevice *)_input_devices[0].p())->set_pointer_in_window(result._xpos, result._ypos, time);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
@ -164,7 +164,7 @@ get_pointer(int device) const {
|
||||
double time = ClockObject::get_global_clock()->get_real_time();
|
||||
result._xpos = event.xbutton.x;
|
||||
result._ypos = event.xbutton.y;
|
||||
((GraphicsWindowInputDevice &)_input_devices[0]).set_pointer_in_window(result._xpos, result._ypos, time);
|
||||
((GraphicsWindowInputDevice *)_input_devices[0].p())->set_pointer_in_window(result._xpos, result._ypos, time);
|
||||
}
|
||||
x11GraphicsPipe::_x_mutex.release();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user