Archive: Little problem with ModernUI and bitmap colors


Little problem with ModernUI and bitmap colors
I have a 8bpp bitmap por the welcome and finish page, one of the colors in this bitmap is replaced with MUI_BGCOLOR, maybe because this color is equal to the default window color.

I have fixed it removing this lines on system.nsh, on the MUI_FUNCTION_WELCOMEPAGE macro:

GetDlgItem$MUI_TEMP1$MUI_HWND1200

SetCtlColors$MUI_TEMP1
"""${MUI_BGCOLOR}"
The problem is that in this position of the image, there is a gradient from white to dark grey, and in the middle of this degree a white line appears (MUI_BGCOLOR=white, if I change it to red, a red line appears)

A screenshot (in red, for a better visualization of the problem)

I cannot reproduce this problem. Can you attach the bitmap you have used?


Here is the bitmap, i'm working in a set of icons too.

The color replaced is, on my machine, R=232, G=232, B=232. If you didn't notice it with this bitmap, try to create one that contains your window color (i'm using a non default windows xp theme).


Reproduced. I'll see what can be done about it.


After some investigation with the help of Dave we have identified the cause of this problem. It's a Windows XP issue.

The background color setting for the image has been disabled if the image is stretched, this will fix it for you.

It will be fixed for non-stretched images later.


Now works, thanks :up:


The fix for non-stretched images is now in cvs.