Rev 2153 | Rev 2173 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2153 | Rev 2172 | ||
---|---|---|---|
Line 482... | Line 482... | ||
482 | dlog << "--- destroyed uis ---" << endl; |
482 | dlog << "--- destroyed uis ---" << endl; |
483 | 483 | ||
484 | }
|
484 | }
|
485 | 485 | ||
486 | void ui::enter () { |
486 | void ui::enter () { |
- | 487 | if (prev_mousex == -1 && prev_mousey == -1) { |
|
- | 488 | prev_mousex = view.midx; |
|
- | 489 | prev_mousey = view.midy; |
|
- | 490 | }
|
|
487 | warp_mouse (prev_mousex, prev_mousey); |
491 | warp_mouse (prev_mousex, prev_mousey); |
488 | }
|
492 | }
|
489 | 493 | ||
490 | void ui::leave () { |
494 | void ui::leave () { |
491 | if (MENU.b_close.visible) MENU.b_close.call_listener (); |
495 | if (MENU.b_close.visible) MENU.b_close.call_listener (); |