This commit is contained in:
troy%netscape.com 1998-08-19 05:06:59 +00:00
Родитель c54b90eb68
Коммит 1594dd0208
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -1655,7 +1655,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
// Realize the drawing palette
int i = ::RealizePalette(hDC);
// Did the realization change?
// Did any of our colors change?
if (i > 0) {
// Yes, so repaint
::InvalidateRect(mWnd, (LPRECT)NULL, TRUE);
@ -1830,7 +1830,8 @@ PRBool nsWindow::OnPaint()
PAINTSTRUCT ps;
HDC hDC = ::BeginPaint(mWnd, &ps);
// XXX What is this check doing? If it's trying to check for an empty
// paint rect then use the IsRectEmpty() function...
if (ps.rcPaint.left || ps.rcPaint.right || ps.rcPaint.top || ps.rcPaint.bottom) {
// call the event callback
if (mEventCallback) {