if (rect.left > rect.right || rect.top > rect.bottom) return;
void fillBackground (int hDC, int pixel, RECT rect) {	int hPalette = display.hPalette;	if (hPalette != 0) {		OS.SelectPalette (hDC, hPalette, false);		OS.RealizePalette (hDC);	}	OS.FillRect (hDC, rect, findBrush (pixel, OS.BS_SOLID));}