Fixed compilation

This commit is contained in:
pelya
2020-03-20 22:55:45 +02:00
parent 082c447205
commit 1764671302
7 changed files with 28 additions and 33 deletions

View File

@@ -390,12 +390,12 @@ struct DropdownWindow : Window {
if (!this->left_button_scrolling &&
_left_button_down &&
this->left_button_scroll_pos != -1 &&
abs(this->left_button_scroll_pos - _cursor.pos.y) > (int)(*list)[0]->Height(this->width)) {
abs(this->left_button_scroll_pos - _cursor.pos.y) > (int)list[0]->Height(this->width)) {
this->left_button_scrolling = true;
this->mouse_capture_widget = WID_DM_ITEMS;
}
if (this->left_button_scrolling) {
int height = (*list)[0]->Height(this->width);
int height = list[0]->Height(this->width);
int pos = (this->left_button_scroll_pos - _cursor.pos.y) / height;
if (pos != 0) {
this->scrolling = pos;