[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: 12x12 Icons on WinXP

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-01-22 20:44:13 CET

Thomas Hruska wrote:

> If Microsoft predicted monitors sizes are going to be larger and fonts
> are going up to 120 dpi, then it doesn't make any sense to use smaller
> icons.

No, it really doesn't :)

> Windows (using its APIs) selects icon size by the order of the icons and
> color depth favoring smaller icons that come first in some cases. The
> rules are very weird how icons are picked and you have almost no control
> over which one to pick from the API point of view. It may be fixable by
> simply changing the order in which some icons appear in the ICO file.

It's a little bit different as I just found out. The LoadImage API
searches the icon which matches the display color depth the closest.
Only then it tries to load the icon with the specified size!

So I changed all the menu icons from 256 colors to 32-bit colors as the
12x12 icons are (rev 8531).

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Jan 22 20:44:30 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.