Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync changes from mozilla-central gfx/wr #3840

Merged
merged 6 commits into from Jan 23, 2020

Bug 1610949 - Only use WS_EX_NOREDIRECTIONBITMAP when using DirectCom…

  • Loading branch information
jrmuizel authored and moz-gfx committed Jan 23, 2020
commit 7b58e44fa3928da1fd8ad2ff2f96f9d4397b8036
@@ -218,14 +218,17 @@ extern "C" {
UINT window_height = static_cast<UINT>(ceil(float(window_rect.bottom - window_rect.top) * dpiY / 96.f));

LPCWSTR name;
DWORD style;
if (enable_compositor) {
name = L"example-compositor (DirectComposition)";
style = WS_EX_NOREDIRECTIONBITMAP;
} else {
name = L"example-compositor (Simple)";
style = 0;
}

window->hWnd = CreateWindowEx(
WS_EX_NOREDIRECTIONBITMAP,
style,
CLASS_NAME,
name,
WS_OVERLAPPEDWINDOW,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.