forked from mia/Aegisub
Fix crash when clicking in the screen dropper area on Windows
Originally committed to SVN as r6910.
This commit is contained in:
parent
9f7bdd8d17
commit
87370eb9c0
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,7 @@ void ColorPickerRecent::OnSize(wxSizeEvent &)
|
|||
|
||||
ColorPickerScreenDropper::ColorPickerScreenDropper(wxWindow *parent, int resx, int resy, int magnification)
|
||||
: wxControl(parent, -1, wxDefaultPosition, wxDefaultSize, STATIC_BORDER_FLAG)
|
||||
, capture(resx * magnification, resy * magnification)
|
||||
, capture(resx * magnification, resy * magnification, wxNativePixelFormat::BitsPerPixel)
|
||||
, resx(resx)
|
||||
, resy(resy)
|
||||
, magnification(magnification)
|
||||
|
|
Loading…
Reference in a new issue