user32: Don't fill the background when drawing the scroll arrows.

This is done, in the correct colour, in MENU_DrawPopupMenu().

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-03-29 10:42:05 +01:00 committed by Alexandre Julliard
parent 79bdeceab4
commit bd785a5ac0
1 changed files with 0 additions and 6 deletions

View File

@ -1339,7 +1339,6 @@ MENU_DrawScrollArrows(const POPUPMENU *lppop, HDC hdc)
HBITMAP hOrigBitmap; HBITMAP hOrigBitmap;
UINT arrow_bitmap_width, arrow_bitmap_height; UINT arrow_bitmap_width, arrow_bitmap_height;
BITMAP bmp; BITMAP bmp;
RECT rect;
GetObjectW(get_down_arrow_bitmap(), sizeof(bmp), &bmp); GetObjectW(get_down_arrow_bitmap(), sizeof(bmp), &bmp);
arrow_bitmap_width = bmp.bmWidth; arrow_bitmap_width = bmp.bmWidth;
@ -1350,13 +1349,8 @@ MENU_DrawScrollArrows(const POPUPMENU *lppop, HDC hdc)
hOrigBitmap = SelectObject(hdcMem, get_up_arrow_bitmap()); hOrigBitmap = SelectObject(hdcMem, get_up_arrow_bitmap());
else else
hOrigBitmap = SelectObject(hdcMem, get_up_arrow_inactive_bitmap()); hOrigBitmap = SelectObject(hdcMem, get_up_arrow_inactive_bitmap());
SetRect(&rect, 0, 0, lppop->Width, arrow_bitmap_height);
FillRect(hdc, &rect, GetSysColorBrush(COLOR_MENU));
BitBlt(hdc, (lppop->Width - arrow_bitmap_width) / 2, 0, BitBlt(hdc, (lppop->Width - arrow_bitmap_width) / 2, 0,
arrow_bitmap_width, arrow_bitmap_height, hdcMem, 0, 0, SRCCOPY); arrow_bitmap_width, arrow_bitmap_height, hdcMem, 0, 0, SRCCOPY);
rect.top = lppop->Height - arrow_bitmap_height;
rect.bottom = lppop->Height;
FillRect(hdc, &rect, GetSysColorBrush(COLOR_MENU));
if (lppop->nScrollPos < lppop->nTotalHeight - (MENU_GetMaxPopupHeight(lppop) - 2 * arrow_bitmap_height)) if (lppop->nScrollPos < lppop->nTotalHeight - (MENU_GetMaxPopupHeight(lppop) - 2 * arrow_bitmap_height))
SelectObject(hdcMem, get_down_arrow_bitmap()); SelectObject(hdcMem, get_down_arrow_bitmap());
else else