mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 960692 - Remove WM_PAINT handling in winrt widget. f=bas, r=bbondy
This commit is contained in:
parent
9f6208bbe6
commit
8b360ac7f7
@ -369,7 +369,9 @@ FrameworkView::SendActivationEvent()
|
||||
}
|
||||
NS_ASSERTION(mWindow, "SetWindow must be called before SendActivationEvent!");
|
||||
mWidget->Activated(mWinActiveState);
|
||||
UpdateWidgetSizeAndPosition();
|
||||
if (mWinActiveState) {
|
||||
UpdateWidgetSizeAndPosition();
|
||||
}
|
||||
EnsureAutomationProviderCreated();
|
||||
}
|
||||
|
||||
|
@ -798,18 +798,6 @@ MetroWidget::WindowProcedure(HWND aWnd, UINT aMsg, WPARAM aWParam, LPARAM aLPara
|
||||
}
|
||||
|
||||
switch (aMsg) {
|
||||
case WM_PAINT:
|
||||
{
|
||||
HRGN rgn = CreateRectRgn(0, 0, 0, 0);
|
||||
GetUpdateRgn(mWnd, rgn, false);
|
||||
nsIntRegion region = WinUtils::ConvertHRGNToRegion(rgn);
|
||||
DeleteObject(rgn);
|
||||
if (region.IsEmpty())
|
||||
break;
|
||||
Paint(region);
|
||||
break;
|
||||
}
|
||||
|
||||
case WM_POWERBROADCAST:
|
||||
{
|
||||
switch (aWParam)
|
||||
|
Loading…
Reference in New Issue
Block a user