mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 02:12:37 +01:00
Codechange: Add OnScrollbarScroll window event, called when a scrollbar position changes.
This commit is contained in:
committed by
Peter Nelson
parent
321f7e8683
commit
780c26237f
@@ -240,6 +240,7 @@ static void ScrollbarClickPositioning(Window *w, NWidgetScrollbar *sb, int x, in
|
||||
|
||||
if (changed) {
|
||||
/* Position changed so refresh the window */
|
||||
w->OnScrollbarScroll(sb->GetIndex());
|
||||
w->SetDirty();
|
||||
} else {
|
||||
/* No change so only refresh this scrollbar */
|
||||
|
||||
Reference in New Issue
Block a user