Double buffer wxGridWindow drawing
This eliminates noticeable flicker under MSW when changing selection, for example.
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
#include "wx/listbox.h"
|
#include "wx/listbox.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/dcbuffer.h"
|
||||||
#include "wx/textfile.h"
|
#include "wx/textfile.h"
|
||||||
#include "wx/spinctrl.h"
|
#include "wx/spinctrl.h"
|
||||||
#include "wx/tokenzr.h"
|
#include "wx/tokenzr.h"
|
||||||
@@ -1911,7 +1912,7 @@ wxEND_EVENT_TABLE()
|
|||||||
|
|
||||||
void wxGridWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
void wxGridWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
wxPaintDC dc( this );
|
wxAutoBufferedPaintDC dc( this );
|
||||||
m_owner->PrepareDCFor( dc, this );
|
m_owner->PrepareDCFor( dc, this );
|
||||||
wxRegion reg = GetUpdateRegion();
|
wxRegion reg = GetUpdateRegion();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user