#9554: [Tracker] doesn't scale built-in bitmap icons
------------------------------------+----------------------------
Reporter: diver | Owner: jscipione
Type: bug | Status: assigned
Priority: normal | Milestone: R1
Component: Applications/Tracker | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking: 9588
Has a Patch: 0 | Platform: All
------------------------------------+----------------------------
Comment (by jscipione):
I got the fallback icon to load at >32px sizes but the testing was hard to
do because there are very few bitmap icons left in Tracker. The only way I
was able to test this change was to alter Tracker to use the old BeOS
volume icon for my volume instead of the vector one. Before my patch we
were returning an error if the size passed in was not 16 or 32 which is
why the icon would show as blank for sizes larger than 32x32. However, we
are able to scale 16px and 32px bitmaps to larger sizes and convert them
to B_RGBA (instead of BeOS icon's CMAP8) color space using IconUtils.
IconUtils does not do a straight conversion but instead uses a combination
of scale2x, scale3x, scale4x, bilinear down-scaling and as a last resort
bilinear up-scaling to achieve a nicer looking scaled icon. So while I got
the bitmap icon scaling to work we should probably also have a fall back
to our (bitmap) fall back to our (vector) fall back and choose some
generic icon in the case that for some reason we were not able to provide
a scaled version of the bitmap.
--
Ticket URL: <https://dev.haiku-os.org/ticket/9554#comment:12>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.