From e1f9434d4c2b4b6691076ad2b729525272039e95 Mon Sep 17 00:00:00 2001 From: Osspial Date: Mon, 8 Apr 2019 01:07:12 -0400 Subject: [PATCH] Fix window icon (#831) * Fix window icon * Add CHANGELOG entry --- CHANGELOG.md | 1 + src/platform_impl/windows/window.rs | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c0ca42350..8460361027 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ - On Windows, fix `CursorMoved(0, 0)` getting dispatched on window focus. - On macOS, fix command key event left and right reverse. - On FreeBSD, NetBSD, and OpenBSD, fix build of X11 backend. +- On Windows, fix icon not showing up in corner of window. - On X11, change DPI scaling factor behavior. First, winit tries to read it from "Xft.dpi" XResource, and uses DPI calculation from xrandr dimensions as fallback behavior. # Version 0.19.0 (2019-03-06) diff --git a/src/platform_impl/windows/window.rs b/src/platform_impl/windows/window.rs index 2155e8ec7b..7fe74c3298 100644 --- a/src/platform_impl/windows/window.rs +++ b/src/platform_impl/windows/window.rs @@ -668,9 +668,6 @@ unsafe fn init( format!("{}", io::Error::last_os_error())))); } - winuser::SetWindowLongW(handle, winuser::GWL_STYLE, 0); - winuser::SetWindowLongW(handle, winuser::GWL_EXSTYLE, 0); - WindowWrapper(handle) };