The chooser is created as basically as possible, then the image is updated afterwards like this:
Code: Select all
bmo = BitMapObject,
BITMAP_Screen, screen,
// BITMAP_Masking, TRUE,
// BITMAP_HasAlpha, TRUE,
BITMAP_Width, 16,
BITMAP_Height, 16,
BITMAP_BitMap, bm,
BitMapEnd;
RefreshSetGadgetAttrs((struct Gadget *)objects[GID_CHOOSER],
win, NULL,
GA_Image, bmo,
TAG_DONE);
What am I doing wrong?
edit Forgot to mention - if I blit this bitmap to the window it displays correctly, so the bitmap itself is fine.