Fixed compilaiton in window and widget code

This commit is contained in:
Sergii Pylypenko
2019-04-24 20:13:08 +03:00
committed by pelya
parent 108d3365ff
commit aa4b5de6e1
2 changed files with 2 additions and 3 deletions

View File

@@ -131,7 +131,6 @@ static void ScrollbarClickPositioning(Window *w, NWidgetScrollbar *sb, int x, in
if (_scrollbar_size > button_size * 2)
_scrollbar_size -= button_size;
w->mouse_capture_widget = sb->index;
w->scrolling_scrollbar = sb->index;
_cursorpos_drag_start = _cursor.pos;
}
}

View File

@@ -2469,9 +2469,9 @@ static EventState HandleWindowDragging()
w->SetDirty();
if (GetWindowDraggedOffScreen(w)) {
GuiShowTooltips(w, STR_TOOLTIP_CLOSE_WINDOW, 0, NULL, TCC_LEFT_CLICK);
GuiShowTooltips(w, STR_TOOLTIP_CLOSE_WINDOW, 0, NULL, TCC_NONE);
} else {
GuiShowTooltips(w, STR_NULL, 0, NULL, TCC_LEFT_CLICK); // Hide tooltip
GuiShowTooltips(w, STR_NULL, 0, NULL, TCC_NONE); // Hide tooltip
}
return ES_HANDLED;