overload wxEVT_ERASE_BACKGROUND, to reduce flicker

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1565 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2010-12-07 22:19:49 +00:00
parent 55f03214f8
commit cd2aa25535
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -430,6 +430,7 @@ BEGIN_EVENT_TABLE(ImageSlicePreview, wxControl)
EVT_LEFT_UP (ImageSlicePreview::onLeftUp)
EVT_MOTION (ImageSlicePreview::onMotion)
EVT_MOUSE_CAPTURE_LOST(ImageSlicePreview::onLoseCapture)
EVT_ERASE_BACKGROUND(ImageSlicePreview::onEraseBackground)
END_EVENT_TABLE ()
@@ -695,4 +696,5 @@ BEGIN_EVENT_TABLE(ImageSliceSelector, wxControl)
EVT_MOTION (ImageSliceSelector::onMotion)
EVT_SIZE (ImageSliceSelector::onSize)
EVT_MOUSE_CAPTURE_LOST(ImageSliceSelector::onLoseCapture)
EVT_ERASE_BACKGROUND(ImageSliceSelector::onEraseBackground)
END_EVENT_TABLE ()