Skip to content

Commit

Permalink
Fix flicker when drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
segrax committed Jan 28, 2017
1 parent ea7c297 commit 954f16e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/PanelTileView.cpp
Expand Up @@ -25,6 +25,7 @@
BEGIN_EVENT_TABLE(cPanelTileView,wxPanel)
////Manual Code Start
EVT_TIMER( ID_EVENT_MOUSE_TIMER, cPanelTileView::OnMouseInputTimer )
EVT_ERASE_BACKGROUND( cPanelTileView::OnEraseBackground )
////Manual Code End

EVT_CLOSE(cPanelTileView::OnClose)
Expand Down Expand Up @@ -128,6 +129,9 @@ void cPanelTileView::OnMouseInputTimer( wxTimerEvent& event ) {
}
}

void cPanelTileView::OnEraseBackground( wxEraseEvent& pEvent ) {

}
/*
* cTileViewPaint
*/
Expand Down
1 change: 1 addition & 0 deletions Source/PanelTileView.h
Expand Up @@ -47,6 +47,7 @@ class cPanelTileView : public wxPanel
cPanelTileView(wxWindow *parent, wxWindowID id = 1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = cPanelTileView_STYLE);
virtual ~cPanelTileView();
void cTileViewPaint(wxPaintEvent& event);
void OnEraseBackground( wxEraseEvent& pEvent );
void OnMouse( wxMouseEvent& event );
void OnMouseInputTimer( wxTimerEvent& event );

Expand Down

0 comments on commit 954f16e

Please sign in to comment.