mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-19 04:09:41 +00:00
Update CGEditor+debug
This commit is contained in:
parent
dd24427d81
commit
4f2c68de60
3 changed files with 3 additions and 9 deletions
|
@ -216,13 +216,7 @@ void EditorCanvas::MouseEvent(wxMouseEvent &event) {
|
|||
|
||||
// Handle editor events
|
||||
Update();
|
||||
bool need_redraw=false;
|
||||
for(auto event: status.Events){
|
||||
HandleEvent(event);
|
||||
need_redraw=true;
|
||||
}
|
||||
if(need_redraw){
|
||||
status.Events.clear();
|
||||
if(ProcessEvents()){
|
||||
Refresh();
|
||||
Update();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue