summaryrefslogtreecommitdiff
path: root/src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-04-03 11:28:02 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-04-03 11:28:02 +0200
commitc340c4a2bd8f2753945f226320af92e662d9b4b7 (patch)
tree042747b03226d6d74515448d2123e869517d2250 /src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx
parent71caca84d92161792861fb33381f7a9c2be05343 (diff)
Fix "Minor drawing artifact at scale 200% under X11 session" (#1243)
Diffstat (limited to 'src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx')
-rw-r--r--src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx b/src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx
index 926121bdb..ed04d1167 100644
--- a/src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx
+++ b/src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx
@@ -50,11 +50,7 @@ void Fl_X11_Cairo_Graphics_Driver::scale(float f) {
void Fl_X11_Cairo_Graphics_Driver::copy_offscreen(int x, int y, int w, int h,
Fl_Offscreen pixmap, int srcx, int srcy) {
- cairo_matrix_t mat;
- if (cairo_) cairo_get_matrix(cairo_, &mat);
- else cairo_matrix_init_identity(&mat);
- XCopyArea(fl_display, pixmap, fl_window, (GC)Fl_Graphics_Driver::default_driver().gc(), int(srcx*scale()), int(srcy*scale()), int(w*scale()), int(h*scale()),
- int(x*scale()) + mat.x0, int(y*scale()) + mat.y0);
+ XCopyArea(fl_display, pixmap, fl_window, (GC)Fl_Graphics_Driver::default_driver().gc(), int(srcx*scale()), int(srcy*scale()), int(w*scale()), int(h*scale()), int(x*scale()), int(y*scale()));
}