/*********************** * Clear: clear the device context * @author: Joshua Tanner * @parameter: none * @return: void ********************/ void CBackBuffer::Clear() { //Back buffer is cleared with black brush every frame HBRUSH hOldBrush = static_cast<HBRUSH>(SelectObject(GetBFDC(), GetStockObject(LTGRAY_BRUSH))); Rectangle(GetBFDC(), 0, 0, GetWidth(), GetHeight()); SelectObject(GetBFDC(), hOldBrush); }
void CBackBuffer::Clear() { HBRUSH hOldBrush = static_cast<HBRUSH>(SelectObject(GetBFDC(), GetStockObject(WHITE_BRUSH))); Rectangle(GetBFDC(), 0, 0, GetWidth(), GetHeight()); SelectObject(GetBFDC(), hOldBrush); }