diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/headless/svpgdi.cxx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index 7488a77b635d..5c1f0daab194 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -714,22 +714,14 @@ void SvpSalGraphics::drawPixel( long nX, long nY ) } } -void SvpSalGraphics::drawPixel( long nX, long nY, Color nColor ) +void SvpSalGraphics::drawPixel( long nX, long nY, Color aColor ) { - Color aOrigFillColor = m_aFillColor; - Color aOrigLineColor = m_aLineColor; - - basegfx::B2DPolygon aRect = basegfx::utils::createPolygonFromRect(basegfx::B2DRectangle(nX, nY, nX+1, nY+1)); - m_aLineColor = SALCOLOR_NONE; - m_aFillColor = nColor; - - drawPolyPolygon( - basegfx::B2DHomMatrix(), - basegfx::B2DPolyPolygon(aRect), - 0.0); + cairo_t* cr = getCairoContext(true); + clipRegion(cr); - m_aFillColor = aOrigFillColor; - m_aLineColor = aOrigLineColor; + cairo_rectangle(cr, nX, nY, 1, 1); + applyColor(cr, aColor, 0.0); + cairo_fill(cr); } void SvpSalGraphics::drawRect( long nX, long nY, long nWidth, long nHeight ) |