Codechange: Use parameters, which should be used.

This commit is contained in:
frosch
2023-09-16 23:25:17 +02:00
committed by frosch
parent b6c8f301be
commit b5885295f0
13 changed files with 67 additions and 41 deletions

View File

@@ -185,9 +185,11 @@ struct OskWindow : public Window {
void OnEditboxChanged(int widget) override
{
this->SetWidgetDirty(WID_OSK_TEXT);
this->parent->OnEditboxChanged(this->text_btn);
this->parent->SetWidgetDirty(this->text_btn);
if (widget == WID_OSK_TEXT) {
this->SetWidgetDirty(WID_OSK_TEXT);
this->parent->OnEditboxChanged(this->text_btn);
this->parent->SetWidgetDirty(this->text_btn);
}
}
void OnInvalidateData([[maybe_unused]] int data = 0, [[maybe_unused]] bool gui_scope = true) override