mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +00:00
fixing icons as per dr_evil [http://lwjgl.org/forum/index.php/topic,3925.0.html]
This commit is contained in:
parent
067e27de66
commit
07ffa133ad
1 changed files with 2 additions and 2 deletions
|
|
@ -668,16 +668,16 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
int size = icon.limit() / 4;
|
||||
|
||||
if ( (((int)Math.sqrt(size)) == small_icon_size) && (!done_small) ) {
|
||||
freeSmallIcon();
|
||||
small_icon = createIcon(small_icon_size, small_icon_size, icon.asIntBuffer());
|
||||
sendMessage(hwnd, WM_SETICON, ICON_SMALL, small_icon);
|
||||
freeSmallIcon();
|
||||
used++;
|
||||
done_small = true;
|
||||
}
|
||||
if ( (((int)Math.sqrt(size)) == large_icon_size) && (!done_large) ) {
|
||||
freeLargeIcon();
|
||||
large_icon = createIcon(large_icon_size, large_icon_size, icon.asIntBuffer());
|
||||
sendMessage(hwnd, WM_SETICON, ICON_BIG, large_icon);
|
||||
freeLargeIcon();
|
||||
used++;
|
||||
done_large = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue