mirror of
https://github.com/scummvm/scummvm.git
synced 2026-05-21 05:40:43 +00:00
GUI: Update print preview on dialog resize
This commit is contained in:
committed by
Eugene Sandulenko
parent
c57821cd18
commit
13a0004c30
@@ -248,4 +248,9 @@ void PrintingDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
|
||||
}
|
||||
}
|
||||
|
||||
void PrintingDialog::reflowLayout() {
|
||||
Dialog::reflowLayout();
|
||||
updatePreview();
|
||||
}
|
||||
|
||||
} // End of namespace GUI
|
||||
|
||||
@@ -44,6 +44,7 @@ public:
|
||||
PrintingDialog(const Graphics::ManagedSurface &surface, bool defaultFitToPage, bool defaultCenter, PageOrientation defaultOrientation);
|
||||
|
||||
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data) override;
|
||||
void reflowLayout() override;
|
||||
|
||||
private:
|
||||
void updatePreview();
|
||||
|
||||
Reference in New Issue
Block a user