Skip to content

Commit

Permalink
Fix window icon (rust-windowing#831)
Browse files Browse the repository at this point in the history
* Fix window icon

* Add CHANGELOG entry
  • Loading branch information
Osspial authored and felixrabe committed Jun 22, 2019
1 parent e8b71b0 commit e1f9434
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions src/platform_impl/windows/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,6 @@ unsafe fn init<T: 'static>(
format!("{}", io::Error::last_os_error()))));
}

winuser::SetWindowLongW(handle, winuser::GWL_STYLE, 0);
winuser::SetWindowLongW(handle, winuser::GWL_EXSTYLE, 0);

WindowWrapper(handle)
};

Expand Down

0 comments on commit e1f9434

Please sign in to comment.