From: Matthew G. <mat...@us...> - 2007-09-28 05:39:32
|
Update of /cvsroot/jsbsimcommander/src/mattplot In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1425/src/mattplot Modified Files: plot.cpp plot.h Log Message: mattplot bug fix for win32 on a unexpected event order Index: plot.cpp =================================================================== RCS file: /cvsroot/jsbsimcommander/src/mattplot/plot.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** plot.cpp 27 Sep 2007 15:20:28 -0000 1.3 --- plot.cpp 28 Sep 2007 05:39:29 -0000 1.4 *************** *** 6355,6359 **** WYSWYG(false), FileName(wxEmptyString), ! hasLoaded(false) { pos_title = TITLE_UP; --- 6355,6360 ---- WYSWYG(false), FileName(wxEmptyString), ! hasLoaded(false), ! bitmap_updated(false) { pos_title = TITLE_UP; *************** *** 6763,6770 **** --- 6764,6773 ---- mdc.SelectObject(wxNullBitmap); dc.DrawBitmap(bitmap, 0, 0, false); + bitmap_updated = true; } else { draw(dc, w, h); + bitmap_updated = false; } } *************** *** 6775,6779 **** if (isDrawIndicator) { ! if (bitmap.Ok()) { dc.DrawBitmap(bitmap, 0, 0, false); --- 6778,6782 ---- if (isDrawIndicator) { ! if (bitmap_updated) { dc.DrawBitmap(bitmap, 0, 0, false); Index: plot.h =================================================================== RCS file: /cvsroot/jsbsimcommander/src/mattplot/plot.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** plot.h 27 Sep 2007 15:20:28 -0000 1.3 --- plot.h 28 Sep 2007 05:39:29 -0000 1.4 *************** *** 1126,1129 **** --- 1126,1131 ---- */ wxBitmap bitmap; + + bool bitmap_updated; /** |