mirror of https://github.com/odrling/Aegisub
Explicitly set the size of ColourButton as the default looks somewhat odd with wx trunk
Originally committed to SVN as r5686.
This commit is contained in:
parent
546ced012a
commit
c4544839e9
|
@ -45,7 +45,7 @@
|
|||
#include "dialog_colorpicker.h"
|
||||
|
||||
ColourButton::ColourButton(wxWindow* parent, wxWindowID id, const wxSize& size, wxColour col)
|
||||
: wxBitmapButton(parent, id, wxBitmap(size))
|
||||
: wxBitmapButton(parent, id, wxBitmap(size), wxDefaultPosition, wxSize(size.GetWidth() + 6, size.GetHeight() + 6))
|
||||
, bmp(GetBitmapLabel())
|
||||
, colour(col)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue