Fix "Minor drawing artifact at scale 200% under X11 session" (#1243)
This commit is contained in:
parent
03dc76846d
commit
58b0b2b7e0
@ -50,11 +50,9 @@ 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()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user