diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-04-03 11:28:02 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-04-03 11:28:02 +0200 |
| commit | c340c4a2bd8f2753945f226320af92e662d9b4b7 (patch) | |
| tree | 042747b03226d6d74515448d2123e869517d2250 /src | |
| parent | 71caca84d92161792861fb33381f7a9c2be05343 (diff) | |
Fix "Minor drawing artifact at scale 200% under X11 session" (#1243)
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Cairo/Fl_X11_Cairo_Graphics_Driver.cxx | 6 |
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())); } |
