From aac5e488756e794099dadd5fce217f37a07a3ada Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:12:50 +0100 Subject: Fl_Native_File_Chooser_GTK: improve preview of text files on HiDPI --- src/Fl_Native_File_Chooser_GTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_Native_File_Chooser_GTK.cxx b/src/Fl_Native_File_Chooser_GTK.cxx index 195e87ba2..28363aeda 100644 --- a/src/Fl_Native_File_Chooser_GTK.cxx +++ b/src/Fl_Native_File_Chooser_GTK.cxx @@ -576,7 +576,7 @@ static void update_preview_cb(GtkFileChooser *file_chooser, GtkImage* gtkimg) img->scale(width, height); 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_color(FL_WHITE); fl_rectf(0, 0, width, height); -- cgit v1.2.3