mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
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:
@@ -142,6 +142,7 @@ class ImageSlicePreview : public wxControl {
|
||||
void onLoseCapture(wxMouseCaptureLostEvent&);
|
||||
|
||||
void onPaint(wxPaintEvent&);
|
||||
void onEraseBackground(wxEraseEvent&) {}
|
||||
void draw(DC& dc);
|
||||
};
|
||||
|
||||
@@ -176,6 +177,7 @@ class ImageSliceSelector : public wxControl {
|
||||
void onLoseCapture(wxMouseCaptureLostEvent&);
|
||||
|
||||
void onPaint(wxPaintEvent&);
|
||||
void onEraseBackground(wxEraseEvent&) {}
|
||||
void onSize(wxSizeEvent&);
|
||||
|
||||
// Is the mouse on a (scale) handle?
|
||||
|
||||
Reference in New Issue
Block a user