Force the backbuffer to be reallocated when the display depth is changed. bug 6061 r=karnaze sr=attinasi

git-svn-id: svn://10.0.0.236/trunk@104027 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kmcclusk%netscape.com 2001-09-28 00:16:57 +00:00
parent fe8c9753e0
commit 02709e4dd7

View File

@ -1978,6 +1978,20 @@ NS_IMETHODIMP nsViewManager::DispatchEvent(nsGUIEvent *aEvent, nsEventStatus *aS
*aStatus = nsEventStatus_eConsumeNoDefault;
break;
case NS_DISPLAYCHANGED:
// Reset the offscreens width and height
// so it will be reallocated the next time it needs to
// draw. It needs to be reallocated because it's depth
// has changed. @see bugzilla bug 6061
*aStatus = nsEventStatus_eConsumeDoDefault;
mDSBounds.width = 0;
mDSBounds.height = 0;
break;
default:
{
nsIView* baseView;