Fix XBM colour rendering in NS port (bug#22060)

src/nsimage.m (setXBMColor): Fix calculation of xbm_fg.
This commit is contained in:
Alan Third 2017-04-24 10:23:28 +01:00 committed by Andrew G Cohen
parent 5d21c627f7
commit e528a750da

View file

@ -302,7 +302,7 @@ - (void)dealloc
planes[1][i] = gg;
planes[2][i] = bb;
}
xbm_fg = ((rr << 16) & 0xff) + ((gg << 8) & 0xff) + (bb & 0xff);
xbm_fg = ((rr << 16) & 0xff0000) + ((gg << 8) & 0xff00) + (bb & 0xff);
}
return self;