mirror of
https://github.com/fltk/fltk.git
synced 2026-02-06 16:31:43 +08:00
Fix Fl_Wayland_Image_Surface_Driver c'tor
This commit is contained in:
@@ -43,6 +43,7 @@ Fl_Wayland_Image_Surface_Driver::Fl_Wayland_Image_Surface_Driver(int w, int h,
|
||||
cairo_format_stride_for_width(CAIRO_FORMAT_RGB24, w), CAIRO_FORMAT_RGB24);
|
||||
offscreen = (Fl_Offscreen)off_->cairo_;
|
||||
cairo_set_user_data(off_->cairo_, &Fl_Wayland_Graphics_Driver::key, off_, NULL);
|
||||
if (d*s != 1 && high_res) cairo_scale((cairo_t*)offscreen, d*s, d*s);
|
||||
}
|
||||
driver(new Fl_Wayland_Graphics_Driver());
|
||||
if (d*s != 1 && high_res) driver()->scale(d*s);
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "Fl_Wayland_Window_Driver.H"
|
||||
#include "Fl_Wayland_Screen_Driver.H"
|
||||
#include "Fl_Wayland_Graphics_Driver.H"
|
||||
#include "Fl_Wayland_Image_Surface_Driver.H"
|
||||
#include <FL/filename.H>
|
||||
#include <wayland-cursor.h>
|
||||
#include "../../../libdecor/src/libdecor.h"
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
# include <FL/Fl_Image_Surface.H>
|
||||
# include "Fl_Wayland_Screen_Driver.H"
|
||||
# include "Fl_Wayland_Window_Driver.H"
|
||||
# include "Fl_Wayland_Image_Surface_Driver.H"
|
||||
# include "../Unix/Fl_Unix_System_Driver.H"
|
||||
# include "Fl_Wayland_Graphics_Driver.H"
|
||||
# include "../../flstring.h" // includes <string.h>
|
||||
|
||||
Reference in New Issue
Block a user