diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-04 20:02:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-05 10:50:25 +0000 |
commit | 39038ed8dac3d896d261a76e11f9004f7d68f989 (patch) | |
tree | 2d5cbaf0e6344632daf4c43b01a2375882f10623 /vcl/inc | |
parent | d6ded494dbb781d5539ab44fa8765eaf16275688 (diff) |
move drawPixel into CairoCommon and reuse from X11CairoSalGraphicsImpl
Change-Id: I0638403ab54039793e851583937b09674f05c36d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145051
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/headless/CairoCommon.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/headless/CairoCommon.hxx b/vcl/inc/headless/CairoCommon.hxx index 029060c31962..743c962c9423 100644 --- a/vcl/inc/headless/CairoCommon.hxx +++ b/vcl/inc/headless/CairoCommon.hxx @@ -152,6 +152,9 @@ struct VCL_DLLPUBLIC CairoCommon void clipRegion(cairo_t* cr); static void clipRegion(cairo_t* cr, const vcl::Region& rClipRegion); + static void drawPixel(cairo_t* cr, basegfx::B2DRange* pExtents, const Color& rLineColor, + tools::Long nX, tools::Long nY); + static void drawLine(cairo_t* cr, basegfx::B2DRange* pExtents, const Color& rLineColor, bool bAntiAlias, tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2); |