diff win/dw.c @ 672:388f2a48aaae

Missed one function to typedef. Fixed errors in the test program and switched to using the new HICN type after making sure the code built on the other platforms unmodified.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 27 Feb 2011 19:25:21 +0000
parents c60a4f6cfae8
children 67f2e890b9df
line wrap: on
line diff
--- a/win/dw.c	Sun Feb 27 19:01:40 2011 +0000
+++ b/win/dw.c	Sun Feb 27 19:25:21 2011 +0000
@@ -5561,9 +5561,9 @@
  *       handle: Handle to the window.
  *       id: An ID to be used to specify the icon.
  */
-void API dw_window_set_icon(HWND handle, ULONG id)
-{
-   HICON hicon = id < 65536 ? LoadIcon(DWInstance, MAKEINTRESOURCE(id)) : (HICON)id;
+void API dw_window_set_icon(HWND handle, HICN icon)
+{
+   HICON hicon = icon < 65536 ? LoadIcon(DWInstance, MAKEINTRESOURCE(icon)) : (HICON)icon;
 
    SendMessage(handle, WM_SETICON,
             (WPARAM) IMAGE_ICON,