Replaced Blit with DrawBitmap in wxPoem to make it run with wxX11
Added some XSyncs because it seems the only way to make dialog sizing work git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -727,9 +727,12 @@ void MyCanvas::OnPaint(wxPaintEvent& WXUNUSED(event))
|
||||
int xx, yy;
|
||||
TheMainWindow->GetClientSize(&xx, &yy);
|
||||
|
||||
dc.DrawBitmap(* backingBitmap, 0, 0);
|
||||
#if 0
|
||||
wxMemoryDC memDC;
|
||||
memDC.SelectObject(* backingBitmap);
|
||||
dc.Blit(0, 0, backingBitmap->GetWidth(), backingBitmap->GetHeight(), &memDC, 0, 0);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user