|
|
commit aac5e488756e794099dadd5fce217f37a07a3ada
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Mon Mar 18 18:12:50 2024 +0100
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Mon Mar 18 18:12:50 2024 +0100
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 src/Fl_Native_File_Chooser_GTK.cxx src/Fl_Native_File_Chooser_GTK.cxx
index 195e87b..28363ae 100644
--- src/Fl_Native_File_Chooser_GTK.cxx
+++ 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);
[ Direct Link to Message ] | |
|
| |