From 87370eb9c0709e6c8b808615965e535714d39c0d Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 17 Jun 2012 20:22:38 +0000 Subject: [PATCH] Fix crash when clicking in the screen dropper area on Windows Originally committed to SVN as r6910. --- aegisub/src/dialog_colorpicker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_colorpicker.cpp b/aegisub/src/dialog_colorpicker.cpp index 251beb6f0..7dc618812 100644 --- a/aegisub/src/dialog_colorpicker.cpp +++ b/aegisub/src/dialog_colorpicker.cpp @@ -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)