eclipse-equinox / p2

Eclipse Public License 2.0
14 stars 40 forks source link

[IconExe] should support BI_BITFIELDS #363

Open laeubi opened 10 months ago

laeubi commented 10 months ago

Currently only bitmaps with either BI_RLE8 or BI_RLE4 are supported. 32 bit BMPs are also allowed to have a value of BI_BITFIELDS, it seems GIMP produces them when res >=256px so the replacement currently fails with

[IconExe] Error - 1 original icon(s) not replaced in eclipse.exe:

I'm not very familiar with the BMP fileformat so I can't provide a fix yet.

Migrated Bug 552627 ...

iloveeclipse commented 10 months ago

You probably want it to report for SWT, where we load image data etc? Or do you know it's in some particular PDE code?

laeubi commented 10 months ago

Sorry I wanted to link the class affected:

https://github.com/eclipse-equinox/p2/blob/master/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/pde/internal/swt/tools/IconExe.java

this case some copy code from SWT :-\