Advertisement
Guest User

aegisub-about

a guest
Sep 16th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. diff --git a/src/dialog_about.cpp b/src/dialog_about.cpp
  2. index b998c9a..b9d76a4 100644
  3. --- a/src/dialog_about.cpp
  4. +++ b/src/dialog_about.cpp
  5. @@ -132,6 +132,8 @@ void ShowAboutDialog(wxWindow *parent) {
  6. aboutString.Replace("(c)", wxString(copySymbol));
  7.  
  8. wxTextCtrl *textctrl = new wxTextCtrl(&d, -1, aboutString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxBORDER_NONE);
  9. + int lines = 12;
  10. + textctrl->SetInitialSize(textctrl->GetSizeFromTextSize(-1, textctrl->GetTextExtent("X").GetHeight() * lines));
  11.  
  12. wxSizer *MainSizer = new wxBoxSizer(wxVERTICAL);
  13. MainSizer->Add(new wxStaticBitmap(&d, -1, GETIMAGE(splash)), 0, wxCENTER, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement