windowing/windowserver/nga/SERVER/REDRAWQ.CPP
branchNewGraphicsArchitecture
changeset 37 31d52bbe209c
parent 33 25f95128741d
equal deleted inserted replaced
35:3aa07f06a4b7 37:31d52bbe209c
   168 #endif
   168 #endif
   169 	// search all screens
   169 	// search all screens
   170 	TInt invalidWindows = 0;
   170 	TInt invalidWindows = 0;
   171 	for (TInt screenNo = 0; screenNo < CWsTop::NumberOfScreens(); ++screenNo)
   171 	for (TInt screenNo = 0; screenNo < CWsTop::NumberOfScreens(); ++screenNo)
   172 		{
   172 		{
   173 		CWsRootWindow* rootWindow = CWsTop::Screen(screenNo)->RootWindow();
   173 		const CScreen* screen = CWsTop::Screen(screenNo);
       
   174 		WS_ASSERT_ALWAYS(screen, EWsPanicNoScreen);
       
   175 		CWsRootWindow* rootWindow = screen->RootWindow();
   174 		for (CWsWindowGroup *groupWin = rootWindow->Child(); groupWin; groupWin = groupWin->NextSibling())
   176 		for (CWsWindowGroup *groupWin = rootWindow->Child(); groupWin; groupWin = groupWin->NextSibling())
   175 			{
   177 			{
   176 			if (groupWin->WsOwner() == iWsOwner)
   178 			if (groupWin->WsOwner() == iWsOwner)
   177 				{
   179 				{
   178 				CWsWindowRedraw* redrawWin = NULL;
   180 				CWsWindowRedraw* redrawWin = NULL;