void ClearBackGround (PRECT pClipRect) { TFB_Palette color; COLORtoPalette (_get_context_bg_color (), &color); TFB_Prim_FillRect (pClipRect, &color); }
Color GetContextBackGroundColor (void) { if (!ContextActive ()) return DEFAULT_BACK_COLOR; return _get_context_bg_color (); }
static void ClearBackGround (RECT *pClipRect) { RECT clearRect; Color color = _get_context_bg_color (); clearRect.corner.x = 0; clearRect.corner.y = 0; clearRect.extent = pClipRect->extent; TFB_Prim_FillRect (&clearRect, color, DRAW_REPLACE_MODE, pClipRect->corner); }
Color SetContextBackGroundColor (Color color) { Color oldColor; if (!ContextActive ()) return DEFAULT_BACK_COLOR; oldColor = _get_context_bg_color (); if (!sameColor(oldColor, color)) SwitchContextBackGroundColor (color); return oldColor; }