зеркало из https://github.com/mozilla/gecko-dev.git
Windows mobile bustage fix for Bug 478147.
This commit is contained in:
Родитель
420a773ff6
Коммит
49855603aa
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче