mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
Refactor out clip rect
This commit is contained in:
@@ -204,8 +204,6 @@ void OpenMainWindow (void)
|
||||
ShowWindow(mainWindow);
|
||||
|
||||
DrawSurface *mainWindowSurface = mainWindow->GetDrawSurface();
|
||||
|
||||
mainWindowSurface->SetClipRect(mainWindowRect);
|
||||
|
||||
whichRoom = GetFirstRoomNumber();
|
||||
CopyRoomToThisRoom(whichRoom);
|
||||
@@ -252,7 +250,6 @@ void OpenMainWindow (void)
|
||||
|
||||
DrawSurface *mainWindowSurface = mainWindow->GetDrawSurface();
|
||||
|
||||
mainWindowSurface->SetClipRect(mainWindowRect);
|
||||
// CopyRgn(mainWindow->clipRgn, mainWindow->visRgn);
|
||||
|
||||
mainWindowSurface->FillRect(mainWindowRect, blackColor);
|
||||
|
||||
@@ -206,9 +206,6 @@ void RedrawMapContents (void)
|
||||
newClip.bottom = mapWindowRect.bottom + 2 - kMapScrollBarWidth;
|
||||
|
||||
DrawSurface *surface = mapWindow->GetDrawSurface();
|
||||
|
||||
const Rect wasClip = surface->GetClipRect();
|
||||
surface->SetClipRect(newClip);
|
||||
|
||||
for (i = 0; i < mapRoomsHigh; i++)
|
||||
{
|
||||
@@ -291,8 +288,6 @@ void RedrawMapContents (void)
|
||||
surface->FrameRect(activeRoomRect, redColor);
|
||||
InsetRect(&activeRoomRect, -1, -1);
|
||||
}
|
||||
|
||||
surface->SetClipRect(wasClip);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -126,7 +126,6 @@ void OpenMessageWindow (const PLPasStr &title)
|
||||
|
||||
DrawSurface *surface = mssgWindow->GetDrawSurface();
|
||||
|
||||
surface->SetClipRect(mssgWindowRect);
|
||||
surface->SetSystemFont(12, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user