mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Refactor out forecolor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user