Fix Cairo: Rounding issues with Fl_RGB_Image::draw() + Fl_Copy_Surface (#1124)
This commit is contained in:
parent
29531fa421
commit
53bedf1d34
@ -49,7 +49,6 @@ Fl_Xlib_Copy_Surface_Driver::Fl_Xlib_Copy_Surface_Driver(int w, int h) : Fl_Copy
|
||||
cairo_save(cairo_);
|
||||
((Fl_X11_Cairo_Graphics_Driver*)driver())->set_cairo(cairo_);
|
||||
#endif
|
||||
driver()->push_no_clip();
|
||||
fl_window = xid->offscreen();
|
||||
driver()->color(FL_WHITE);
|
||||
driver()->rectf(0, 0, w, h);
|
||||
@ -58,7 +57,6 @@ Fl_Xlib_Copy_Surface_Driver::Fl_Xlib_Copy_Surface_Driver(int w, int h) : Fl_Copy
|
||||
|
||||
|
||||
Fl_Xlib_Copy_Surface_Driver::~Fl_Xlib_Copy_Surface_Driver() {
|
||||
driver()->pop_clip();
|
||||
Window old_win = fl_window;
|
||||
fl_window = xid->offscreen();
|
||||
Fl_RGB_Image *rgb = Fl::screen_driver()->read_win_rectangle(0, 0, width, height, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user