This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XWin Icon Fidelity


Hi,

Answering my own query (well it is early Sunday morning, who's up!)

I get better fidelity from the existing X.ico if I fudge it 16x16 with:

--- save_wintrayicon.c  2003-06-01 14:58:40.000000000 +0100
+++ wintrayicon.c       2003-06-01 15:16:11.000000000 +0100
@@ -49,7 +49,12 @@
   nid.uID = pScreenInfo->dwScreen;
   nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
   nid.uCallbackMessage = WM_TRAYICON;
-  nid.hIcon = LoadIcon (g_hInstance, MAKEINTRESOURCE(IDI_XWIN));
+  nid.hIcon = LoadImage (g_hInstance,
+                        MAKEINTRESOURCE(IDI_XWIN),
+                        IMAGE_ICON,
+                        16,
+                        16,
+                        0);

   /* Set display and screen-specific tooltip text */
   snprintf (nid.szTip,


Can be done in winmultiwindowwindow.c as well.

Build a better .ico you may well say!

But 'I'm more of a hacker than I am an artist'


Colin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]