зеркало из 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);
|
::GetViewportOrgEx(hdc, &vpOrg);
|
||||||
::SetBrushOrgEx(hdc, vpOrg.x + widgetRect.left, vpOrg.y + widgetRect.top, NULL);
|
::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
|
// On vista, choose our own colors and draw an XP style half focus rect
|
||||||
// for focused checkboxes and a full rect when active.
|
// for focused checkboxes and a full rect when active.
|
||||||
if (nsUXThemeData::sIsVistaOrLater && aWidgetType == NS_THEME_CHECKBOX) {
|
if (nsUXThemeData::sIsVistaOrLater && aWidgetType == NS_THEME_CHECKBOX) {
|
||||||
|
@ -1175,6 +1176,10 @@ RENDER_AGAIN:
|
||||||
::SetTextColor(hdc, 0);
|
::SetTextColor(hdc, 0);
|
||||||
::DrawFocusRect(hdc, &widgetRect);
|
::DrawFocusRect(hdc, &widgetRect);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
::SetTextColor(hdc, 0);
|
||||||
|
::DrawFocusRect(hdc, &widgetRect);
|
||||||
|
#endif
|
||||||
::RestoreDC(hdc, id);
|
::RestoreDC(hdc, id);
|
||||||
if (hPen) {
|
if (hPen) {
|
||||||
::DeleteObject(hPen);
|
::DeleteObject(hPen);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче