FLTK logo

[master] aac5e48 - Fl_Native_File_Chooser_GTK: improve preview of text files on HiDPI

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] aac5e48 - Fl_Native_File_Chooser_GTK: improve preview of text files on HiDPI "ManoloFLTK" 10:17 Mar 18  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.