SHARE
TWEET

aegisub-about

a guest Sep 16th, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top