Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 121735 - Branding with .bmp files does not seem to work
Summary: Branding with .bmp files does not seem to work
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Janek Lasocki-Biczysko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-21 10:23 EST by Pascal Rapicault CLA
Modified: 2006-03-01 20:56 EST (History)
3 users (show)

See Also:


Attachments
bitmaps for testing (580 bytes, application/octet-stream)
2006-03-01 11:50 EST, Andrew Niefer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2005-12-21 10:23:10 EST
It has been reported in the bug #102028 that the branding of the launcher with bmp files does not seem to work. 
We need to investigate this and see what is going on here.
Comment 1 Andrew Niefer CLA 2006-02-24 10:11:55 EST
Branding works fine if the correct size of bitmaps are provided.  We can only brand sizes that match those already in the launcher exe.

The Launcher tab of the product editor needs to be updated to reflect the bitmap sizes currently in the launcher.  These sizes are:
16x16 8bit (256 color)   16x16 32bit (True color)
24x24 8bit               32x32 32bit 
32x32 8bit               48x48 32bit
48x48 8bit

When these changes are made, pde.build will need to make sure it can still read the .product file if there are format changes.
Comment 2 Wassim Melhem CLA 2006-03-01 03:47:08 EST
JLB, we need to:
1. change the text in the win32 section of the editor to reflect the correct size and depth as per comment 1.  Existing attributes do not need to be modified.

2. we need to add one new attribute to the product file to store the 24x24 8-bit image location.
Comment 3 Janek Lasocki-Biczysko CLA 2006-03-01 11:21:10 EST
I've got the code ready for the extra field but I would like to post a followup before I commit.
Since we've switched (or corrected?) over to 8-bit/32-bit (from the old 4-bit/8-bit) I havent been able to create a 32-bit bmp file to test the validation - do we need to go as high as 32-bit? Would it be alright if we dropped down to 24-bit, since it also supports better display standards for bitmap files?

Thanks
Comment 4 Andrew Niefer CLA 2006-03-01 11:50:35 EST
Created attachment 35547 [details]
bitmaps for testing

Attached are the 32 bit icons I was using to test. 

Because we can only replace image sizes that already exist in the exe, the launcher would need to be switch to 24bit before we could use that size.  I don't know how long the launcher has used 32b, but if we changed, that would break any existing people who have working ico files (or managed to figure out the bitmaps)

Also, I don't know if the validation of the ico file checks the image sizes it contains, but it needs to match the given sizes as well.
Comment 5 Janek Lasocki-Biczysko CLA 2006-03-01 16:39:03 EST
Fixed up to include the 24x24 8-bit file.  Validation of the .ico file has been updated to check for 7 images - further .ico validation will be documented using bug #118811.
Comment 6 Kenneth Evans, Jr. CLA 2006-03-01 20:56:10 EST
It's cool that you have fixed what you have.  However, what one really
wants is to be able to replace the icons with any .ico file.  Since this bug is closed, I am submitting the rest of this comment in Bug #118811.