Double buffer wxGridWindow drawing

This eliminates noticeable flicker under MSW when changing selection,
for example.
This commit is contained in:
Vadim Zeitlin 2020-01-28 00:18:25 +01:00
parent c2b0edefbd
commit ebbadae09a

View File

@ -42,6 +42,7 @@
#include "wx/listbox.h"
#endif
#include "wx/dcbuffer.h"
#include "wx/textfile.h"
#include "wx/spinctrl.h"
#include "wx/tokenzr.h"
@ -1911,7 +1912,7 @@ wxEND_EVENT_TABLE()
void wxGridWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
{
wxPaintDC dc( this );
wxAutoBufferedPaintDC dc( this );
m_owner->PrepareDCFor( dc, this );
wxRegion reg = GetUpdateRegion();