Fix crash when clicking in the screen dropper area on Windows

Originally committed to SVN as r6910.
This commit is contained in:
Thomas Goyne 2012-06-17 20:22:38 +00:00
parent 9f7bdd8d17
commit 87370eb9c0
1 changed files with 1 additions and 1 deletions

View File

@ -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)