From 45aa014c63c99e2a758baba530f94a88647a208c Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 30 Oct 2019 12:21:25 +0100 Subject: fix SkiaSalGraphicsImpl::drawPixel() Change-Id: I2fa0853ba2593583a479747460f77f2ced67fd6a --- vcl/skia/gdiimpl.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'vcl/skia') diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index a90b40bd9e09..8f1447c0d9ac 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -337,15 +337,7 @@ void SkiaSalGraphicsImpl::SetROPLineColor(SalROPColor nROPColor) { (void)nROPCol void SkiaSalGraphicsImpl::SetROPFillColor(SalROPColor nROPColor) { (void)nROPColor; } -void SkiaSalGraphicsImpl::drawPixel(long nX, long nY) -{ - if (mLineColor == SALCOLOR_NONE) - return; - preDraw(); - SkCanvas* canvas = mSurface->getCanvas(); - canvas->drawPoint(nX, nY, SkPaint()); - postDraw(); -} +void SkiaSalGraphicsImpl::drawPixel(long nX, long nY) { drawPixel(nX, nY, mLineColor); } void SkiaSalGraphicsImpl::drawPixel(long nX, long nY, Color nColor) { -- cgit