mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 23:06:54 +08:00
Fl_Native_File_Chooser_GTK: improve preview of text files on HiDPI
This commit is contained in:
@@ -576,7 +576,7 @@ static void update_preview_cb(GtkFileChooser *file_chooser, GtkImage* gtkimg)
|
|||||||
img->scale(width, height);
|
img->scale(width, height);
|
||||||
width = img->w(), height = img->h();
|
width = img->w(), height = img->h();
|
||||||
}
|
}
|
||||||
Fl_Image_Surface *surf = new Fl_Image_Surface(width, height, 1);
|
Fl_Image_Surface *surf = new Fl_Image_Surface(width, height);
|
||||||
Fl_Surface_Device::push_current(surf);
|
Fl_Surface_Device::push_current(surf);
|
||||||
fl_color(FL_WHITE);
|
fl_color(FL_WHITE);
|
||||||
fl_rectf(0, 0, width, height);
|
fl_rectf(0, 0, width, height);
|
||||||
|
|||||||
Reference in New Issue
Block a user