Reset the colors before switching the screen mode

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32365 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2009-08-14 15:32:45 +00:00
parent 6e59af7488
commit b4510aa10c

View File

@ -727,15 +727,16 @@ BWindowScreen::_Deactivate()
} else
ScreenConnected(false);
if (fActivateState) {
BScreen screen(this);
SetColorList((rgb_color *)screen.ColorMap()->color_list);
}
_AssertDisplayMode(fOriginalDisplayMode);
_ResetAccelerantHooks();
be_app->ShowCursor();
if (fActivateState) {
BScreen screen(this);
SetColorList((rgb_color *)screen.ColorMap()->color_list);
}
return B_OK;
}