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)
Tracking
()
RESOLVED
FIXED
mozilla1.6beta
People
(Reporter: neil, Assigned: neil)
Details
Attachments
(1 file, 1 obsolete file)
|
15.52 KB,
patch
|
emaijala+moz
:
review+
mscott
:
superreview+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•21 years ago
|
||
| Assignee | ||
Updated•21 years ago
|
Attachment #133532 -
Flags: superreview?(scott)
Attachment #133532 -
Flags: review?(ere)
Comment 2•21 years ago
|
||
hm, you should probably disable building of nsIconDecoder.cpp too
Comment 4•21 years ago
|
||
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-
| Assignee | ||
Comment 5•21 years ago
|
||
Attachment #133532 -
Attachment is obsolete: true
| Assignee | ||
Updated•21 years ago
|
Attachment #133674 -
Flags: review?(ere)
Comment 6•21 years ago
|
||
Comment on attachment 133674 [details] [diff] [review] Addressed review comments r=ere
Attachment #133674 -
Flags: review?(ere) → review+
| Assignee | ||
Updated•21 years ago
|
Attachment #133674 -
Flags: superreview?(scott)
| Assignee | ||
Comment 7•21 years ago
|
||
Comment on attachment 133674 [details] [diff] [review] Addressed review comments sr hokey-cokey
Attachment #133674 -
Flags: superreview?(scott) → superreview?(tor)
Comment 8•21 years ago
|
||
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)
| Assignee | ||
Comment 10•21 years ago
|
||
Scott: yes; wasn't my initial description clear enough?
| Assignee | ||
Comment 11•21 years ago
|
||
biesi thinks this might also decode icons with alpha transparency but I've got no way to test that...
Comment 12•21 years ago
|
||
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+
| Assignee | ||
Comment 13•21 years ago
|
||
Well, they do in 256 colours ;-)
Target Milestone: --- → mozilla1.6beta
| Assignee | ||
Comment 14•21 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Attachment #133532 -
Flags: superreview?(mscott)
You need to log in
before you can comment on or make changes to this bug.
Description
•