Disable erasing the overlay window background
This resulted in flicker when not using compositing (and should be an optimization even when using it).
This commit is contained in:
parent
d573815c1c
commit
c871d749bd
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ wxWindow* wxCreateOverlayWindow(const wxRect& rect)
|
|||
WS_EX_NOACTIVATE
|
||||
);
|
||||
|
||||
overlayWin->SetBackgroundStyle(wxBG_STYLE_PAINT);
|
||||
|
||||
if ( !::SetLayeredWindowAttributes(GetHwndOf(overlayWin), 0, 128,
|
||||
LWA_COLORKEY | LWA_ALPHA) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue