Closed Bug 222694 Opened 21 years ago Closed 21 years ago

moz-icon:s don't work in less than 16-bit colour, e.g. W2K Terminal Services

Categories

(Core :: Graphics: ImageLib, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.6beta

People

(Reporter: neil, Assigned: neil)

Details

Attachments

(1 file, 1 obsolete file)

When moz-icon:s were created we didn't have an ico decoder so Scott wrote a converter and decoder. Now that we have an ico decoder we don't need to convert Windows icons any more.
Attached patch Proposed patch (obsolete) — Splinter Review
Attachment #133532 - Flags: superreview?(scott)
Attachment #133532 - Flags: review?(ere)
hm, you should probably disable building of nsIconDecoder.cpp too
-> patch author
Assignee: jdunn → neil.parkwaycc.co.uk
Comment on attachment 133532 [details] [diff] [review] Proposed patch > result = GetIconInfo(sfi.hIcon, &iconInfo); > if (result > 0) I'd like to see correct types used. GetIconInfo() returns BOOL. > delete buffer; You need |delete [] buffer;| to avoid memory leak.
Attachment #133532 - Flags: review?(ere) → review-
Attachment #133532 - Attachment is obsolete: true
Attachment #133674 - Flags: review?(ere)
Comment on attachment 133674 [details] [diff] [review] Addressed review comments r=ere
Attachment #133674 - Flags: review?(ere) → review+
Attachment #133674 - Flags: superreview?(scott)
Comment on attachment 133674 [details] [diff] [review] Addressed review comments sr hokey-cokey
Attachment #133674 - Flags: superreview?(scott) → superreview?(tor)
Neil, It has probably been too long since I wrote this, but I wrote this initially so we could display OS icons to next mail attachments and in the helper app dialog based on the content type of the url. Each OS had a different native image format for these images which I then decoded into RGB values for image lib to display. So this patch effects the windows icon decoder only. How do we render the image now if you took out all of the code that converted it to something we internally understand? are you saying the .ico decoder for windows is now doing this for us? "just trying to understand what is going on"
Comment on attachment 133674 [details] [diff] [review] Addressed review comments Back in mscott's sr court.
Attachment #133674 - Flags: superreview?(tor) → superreview?(mscott)
Scott: yes; wasn't my initial description clear enough?
biesi thinks this might also decode icons with alpha transparency but I've got no way to test that...
Comment on attachment 133674 [details] [diff] [review] Addressed review comments I'm assuming you have tested that the icons still render correctly in both the helper app dialog (where we use a large icon) and in the mail message pane and compose attachment bucket.
Attachment #133674 - Flags: superreview?(mscott) → superreview+
Well, they do in 256 colours ;-)
Target Milestone: --- → mozilla1.6beta
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Attachment #133532 - Flags: superreview?(mscott)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: