Move tooltips processing to mouse_handler_base

This commit is contained in:
Ali El Gariani 2010-06-04 18:59:14 +00:00
parent 72ed00ac11
commit ef72ecf413
2 changed files with 3 additions and 1 deletions

View file

@ -202,7 +202,6 @@ void controller_base::play_slice(bool is_delay_enabled)
int mousex, mousey;
Uint8 mouse_flags = SDL_GetMouseState(&mousex, &mousey);
tooltips::process(mousex, mousey);
bool was_scrolling = scrolling_;
scrolling_ = handle_scroll(key, mousex, mousey, mouse_flags);

View file

@ -19,6 +19,7 @@
#include "display.hpp"
#include "log.hpp"
#include "preferences.hpp"
#include "tooltips.hpp"
static lg::log_domain log_display("display");
#define WRN_DP LOG_STREAM(warn, log_display)
@ -79,6 +80,8 @@ void mouse_handler_base::mouse_update(const bool browse)
bool mouse_handler_base::mouse_motion_default(int x, int y, bool /*update*/)
{
tooltips::process(x, y);
if(simple_warp_) {
return true;
}