app_server: (hopefully) fixed overlay on CMAP8, fixed char leaking on 15 and 16bit depth. See ticket #12613

This commit is contained in:
Rudolf Cornelissen 2016-03-03 16:39:54 +01:00
parent d05a2d9920
commit d20632f53c

View File

@ -67,7 +67,7 @@ Overlay::Overlay(HWInterface& interface, ServerBitmap* bitmap,
fOverlayToken(token)
{
fSemaphore = create_sem(1, "overlay lock");
fColor = (rgb_color){ 21, 16, 21, 16 };
fColor = (rgb_color){ 0, 80, 0, 0 };
// TODO: whatever fine color we want to use here...
fWindow.offset_top = 0;
@ -237,12 +237,6 @@ Overlay::SetColorSpace(uint32 colorSpace)
rgb_color colorKey = fColor;
switch (colorSpace) {
case B_CMAP8:
colorKey.red = 0xff;
colorKey.green = 0xff;
colorKey.blue = 0xff;
colorKey.alpha = 0xff;
break;
case B_RGB15:
greenShift = colorShift = 3;
alphaShift = 7;