Refactor out forecolor

This commit is contained in:
elasota
2020-05-21 03:30:11 -04:00
parent a1c45d4fc8
commit 438e7b2138
44 changed files with 924 additions and 967 deletions

View File

@@ -16,7 +16,7 @@
// Given the top left corner and a width and height, this function<6F>
// simply creates the necessary rectangle and frames it.
void FrameWHRect (DrawSurface *surface, short left, short top, short wide, short high)
void FrameWHRect (DrawSurface *surface, short left, short top, short wide, short high, PortabilityLayer::ResolveCachingColor &color)
{
Rect theRect;
@@ -24,7 +24,7 @@ void FrameWHRect (DrawSurface *surface, short left, short top, short wide, short
theRect.top = top;
theRect.right = left + wide;
theRect.bottom = top + high;
surface->FrameRect(theRect);
surface->FrameRect(theRect, color);
}
//-------------------------------------------------------------- NormalizeRect