Windows mobile bustage fix for Bug 478147.

This commit is contained in:
Jim Mathies 2009-02-18 18:17:15 -06:00
Родитель 420a773ff6
Коммит 49855603aa
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1149,6 +1149,7 @@ RENDER_AGAIN:
::GetViewportOrgEx(hdc, &vpOrg);
::SetBrushOrgEx(hdc, vpOrg.x + widgetRect.left, vpOrg.y + widgetRect.top, NULL);
#ifndef WINCE
// On vista, choose our own colors and draw an XP style half focus rect
// for focused checkboxes and a full rect when active.
if (nsUXThemeData::sIsVistaOrLater && aWidgetType == NS_THEME_CHECKBOX) {
@ -1175,6 +1176,10 @@ RENDER_AGAIN:
::SetTextColor(hdc, 0);
::DrawFocusRect(hdc, &widgetRect);
}
#else
::SetTextColor(hdc, 0);
::DrawFocusRect(hdc, &widgetRect);
#endif
::RestoreDC(hdc, id);
if (hPen) {
::DeleteObject(hPen);