summaryrefslogtreecommitdiff
path: root/vcl/skia
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-30 12:21:25 +0100
committerLuboš Luňák <l.lunak@collabora.com>2019-11-27 09:55:13 +0100
commit45aa014c63c99e2a758baba530f94a88647a208c (patch)
tree5100db78f7e9e40d98522efd967041632b1b35ce /vcl/skia
parentd3a864bb2ded44c21aa7ebc6b04e7df7a3271a99 (diff)
fix SkiaSalGraphicsImpl::drawPixel()
Change-Id: I2fa0853ba2593583a479747460f77f2ced67fd6a
Diffstat (limited to 'vcl/skia')
-rw-r--r--vcl/skia/gdiimpl.cxx10
1 files changed, 1 insertions, 9 deletions
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)
{