X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FInput%2Finput.cxx;h=a6c578e934a5150a8c3d0f3c9f00257d58968237;hb=794823815625121a61cc221864418e12d9affb05;hp=999cf12781630a8708e41e2ea0a26a7ee45d2766;hpb=af38fe480398435e95305192832e6e04b92a43cf;p=flightgear.git diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 999cf1278..a6c578e93 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -162,9 +162,6 @@ FGBinding::fire (double setting) const // Implementation of FGInput. //////////////////////////////////////////////////////////////////////// - // From main.cxx -extern void fgReshape( int width, int height ); - FGInput::FGInput () { @@ -341,9 +338,9 @@ FGInput::doMouseClick (int b, int updown, int x, int y) if (mode.pass_through) { if (puMouse(b, updown, x, y)) return; - else if ((current_panel != 0) && - current_panel->getVisibility() && - current_panel->doMouseAction(b, updown, x, y)) + else if ((globals->get_current_panel() != 0) && + globals->get_current_panel()->getVisibility() && + globals->get_current_panel()->doMouseAction(b, updown, x, y)) return; else if (fgHandle3DPanelMouseEvent(b, updown, x, y)) return;