forked from wxWidgets/wxWidgets
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around wxListCtrl repainting problems with WS_EX_COMPOSITED
It seems that simply creating wxPaintDC, i.e. calling BeginPaint(), ourselves and then letting the native control draw into it, disables whichever optimizations are used by the control that break its drawing with WS_EX_COMPOSITED, so always do this in our OnPaint(), even if we don't need to draw anything ourselves. This allows to avoid disabling WS_EX_COMPOSITED when wxListCtrl is used, which resulted in horrible flicker before. See wxWidgets#23585.
- Loading branch information
Showing
1 changed file
with
8 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters