|
|
@@ -191,14 +191,14 @@ void Canvas::drawText(const Point & position, const EFonts & font, const ColorRG
|
|
|
|
|
|
void Canvas::drawColor(const Rect & target, const ColorRGBA & color)
|
|
|
{
|
|
|
- Rect realTarget = (target + renderArea.topLeft()) * getScalingFactor();
|
|
|
+ Rect realTarget = target * getScalingFactor() + renderArea.topLeft();
|
|
|
|
|
|
CSDL_Ext::fillRect(surface, realTarget, CSDL_Ext::toSDL(color));
|
|
|
}
|
|
|
|
|
|
void Canvas::drawColorBlended(const Rect & target, const ColorRGBA & color)
|
|
|
{
|
|
|
- Rect realTarget = (target + renderArea.topLeft()) * getScalingFactor();
|
|
|
+ Rect realTarget = target * getScalingFactor() + renderArea.topLeft();
|
|
|
|
|
|
CSDL_Ext::fillRectBlended(surface, realTarget, CSDL_Ext::toSDL(color));
|
|
|
}
|