diff options
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 3385f436..8034d858 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -875,7 +875,7 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) { | |||
875 | } | 875 | } |
876 | } | 876 | } |
877 | } | 877 | } |
878 | const iWidget *oldHover = d->hover; | 878 | // const iWidget *oldHover = d->hover; |
879 | iBool wasUsed = iFalse; | 879 | iBool wasUsed = iFalse; |
880 | /* Dispatch first to the mouse-grabbed widget. */ | 880 | /* Dispatch first to the mouse-grabbed widget. */ |
881 | // iWidget *widget = d->root.widget; | 881 | // iWidget *widget = d->root.widget; |
@@ -929,9 +929,10 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) { | |||
929 | } | 929 | } |
930 | } | 930 | } |
931 | } | 931 | } |
932 | if (oldHover != d->hover) { | 932 | // if (oldHover != d->hover) { |
933 | postRefresh_App(); | 933 | // refresh_Widget(oldHover); |
934 | } | 934 | // refresh_Widget(d->hover); |
935 | // } | ||
935 | if (event.type == SDL_MOUSEMOTION) { | 936 | if (event.type == SDL_MOUSEMOTION) { |
936 | applyCursor_Window_(d); | 937 | applyCursor_Window_(d); |
937 | } | 938 | } |
@@ -1107,7 +1108,7 @@ void draw_Window(iWindow *d) { | |||
1107 | } | 1108 | } |
1108 | setCurrent_Root(NULL); | 1109 | setCurrent_Root(NULL); |
1109 | #if !defined (NDEBUG) | 1110 | #if !defined (NDEBUG) |
1110 | draw_Text(defaultBold_FontId, zero_I2(), red_ColorId, "%d", drawCount_); | 1111 | draw_Text(defaultBold_FontId, safeRect_Root(d->roots[0]).pos, red_ColorId, "%d", drawCount_); |
1111 | drawCount_ = 0; | 1112 | drawCount_ = 0; |
1112 | #endif | 1113 | #endif |
1113 | } | 1114 | } |