mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Finish removing QDState
This commit is contained in:
@@ -20,11 +20,11 @@
|
||||
// this function draws text in that color. It assumes the current port,<2C>
|
||||
// the current font, the current pen location, etc.
|
||||
|
||||
void ColorText (DrawSurface *surface, const Point &point, StringPtr theStr, long color)
|
||||
void ColorText (DrawSurface *surface, const Point &point, StringPtr theStr, long color, PortabilityLayer::RenderedFont *font)
|
||||
{
|
||||
PortabilityLayer::ResolveCachingColor rColor = PortabilityLayer::ResolveCachingColor::FromStandardColor(color);
|
||||
|
||||
surface->DrawString(point, theStr, true, rColor);
|
||||
surface->DrawString(point, theStr, rColor, font);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------- ColorRect
|
||||
|
||||
Reference in New Issue
Block a user