Palette Issue in Simulator with last SDK 3.0.4

Former Member
Former Member
Hello,

I've noticed palette issue with the last SDK Update 3.0.4 in the Connect IQ Simulator.
Colors are for some watch models not attributed correctly. For exemple if I add a bitmap (a white drawing with a black background) with a black and white palette; I will get for some models a black background and a white drawing and for other models a white background and a black drawing : colors are inverted.
However when I build it to my device, colors are Ok so that's why I think this issue is just on simulator.
Does someone have noticed the same issue?
  • Which targets? Also, maybe post the code for how you are doing the bitmap and palettes. Is this the sim on Windows, a mac or Linux?
  • Former Member
    Former Member
    It works fine for the Fenix 5 but not for the Fenix 3 and Forerunner 230/235. My OS is Windows 10 and I use Eclipse Oxygen.
    I encounter this issue only with the last SDK, never before.

    I refer to my bitmap/palette like this in the resource.xml file:
    <resources>
    <bitmap id="id_myImage" filename="images/myImag.png" >
    <palette disableTransparency="false">
    <color>FFFFFF</color>
    <color>000000</color>
    </palette>
    </bitmap>
    </resources>

    I load and display the bitmap in the codeView.mcc like that:
    myImage = Ui.loadResource(Rez.Drawables.id_myImage);
    dc.drawBitmap(myImageX,lmyImageY, myImage);
  • I am *almost* certain that this is caused by an issue that I found and fixed just after the 3.0.4 release went out. If I recall correctly, any device that used palletized colors would be affected (most of the old ones).

    Travis