Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATWindow::CleanBackground
CATResult CATWindow::CleanBackground ( CATRect dirtyRect  )  [protected, virtual]

CleanBackground() cleans the dirty rectangle in the background.

CleanBackground() cleans the dirty rectangle in the background

This keeps us from having to perform a full copy of the background image each draw.

Parameters:
dirtyRect - the rectangle to draw, or 0 to draw everything.
Returns:
CATResult - CAT_SUCCESS on success.

Definition at line 261 of file CATWindow.cpp.

References CAT_SUCCESS, CATMin(), CATImage::CopyOver(), CATGuiObj::fBackgroundColor, CATImage::FillRect(), CATGuiObj::fImage, fImageCopy, CATGuiObj::fRect, CATRect::Height(), CATImage::Height(), CATRect::Intersect(), CATRECT::left, ResetBackground(), CATRECT::top, CATRect::Width(), and CATImage::Width().

Referenced by OSDraw().


Generated on Mon Feb 11 04:11:24 2008 for Game Accessibility Suite by doxygen 1.5.4