The simulator does not display the correct color palette for buffered bitmaps.
When I build for a F6X and SDK 3.2.0 and start the simulator all buffered bitmaps only use black and white.
Code sample:
function bufferedBitmapFactory(options as {:width as Number, :height as Number, :palette as Array<ColorType>, :colorDepth as Number, :bitmapResource as WatchUi.BitmapResource}) as BufferedBitmapReference or BufferedBitmap {
if (Graphics has :createBufferedBitmap) {
return Graphics.createBufferedBitmap(options);
} else {
return new Graphics.BufferedBitmap(options);
}
}
function createBufferedBitmaps() {
buffer1 = bufferedBitmapFactory({:width=>10, :height=>10, :palette=>[color1, color2, color3, color4]});
buffer2 = bufferedBitmapFactory({:width=>10, :height=>10, :palette=>[color1, color2, color3]});
buffer3 = bufferedBitmapFactory({:width=>20, :height=>20, :palette=>[color1, color2, color3, color4, color5]});
}