mirror of https://github.com/odrling/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
|
@ -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 New Issue