Simplify Fl_X11_Window_Driver::resize() when using cairo graphics.
This commit is contained in:
parent
d8be762283
commit
abaa550aea
@ -36,7 +36,6 @@
|
|||||||
# include <FL/fl_draw.H>
|
# include <FL/fl_draw.H>
|
||||||
# include <FL/Fl_Paged_Device.H>
|
# include <FL/Fl_Paged_Device.H>
|
||||||
# include <FL/Fl_Shared_Image.H>
|
# include <FL/Fl_Shared_Image.H>
|
||||||
# include <FL/Fl_Image_Surface.H>
|
|
||||||
# include <FL/fl_ask.H>
|
# include <FL/fl_ask.H>
|
||||||
# include <FL/filename.H>
|
# include <FL/filename.H>
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
@ -2329,10 +2328,6 @@ void Fl_X11_Window_Driver::resize(int X,int Y,int W,int H) {
|
|||||||
float s = Fl::screen_driver()->scale(screen_num());
|
float s = Fl::screen_driver()->scale(screen_num());
|
||||||
cairo_xlib_surface_set_size(cairo_get_target(xlib_cairo_), (W>0 ? int(W*s) : 1), (H>0 ? int(H*s) : 1));
|
cairo_xlib_surface_set_size(cairo_get_target(xlib_cairo_), (W>0 ? int(W*s) : 1), (H>0 ? int(H*s) : 1));
|
||||||
}
|
}
|
||||||
if (other_xid) {
|
|
||||||
delete other_xid;
|
|
||||||
other_xid = NULL;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
pWindow->redraw();
|
pWindow->redraw();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user