summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-18 18:12:50 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-18 18:12:50 +0100
commitaac5e488756e794099dadd5fce217f37a07a3ada (patch)
tree1e806af77f26e706b51712589c22340f3b97450e
parent478e724c5f38b725062b02570c6ad2c554a16e82 (diff)
Fl_Native_File_Chooser_GTK: improve preview of text files on HiDPI
-rw-r--r--src/Fl_Native_File_Chooser_GTK.cxx2
1 files changed, 1 insertions, 1 deletions
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);