File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ private void initComponents() {
3131
3232 // Fix Linux row height
3333 int origHeight = getRowHeight ();
34- if (SystemUtilities .getWindowScaleFactor () != 1 ) {
34+ if (SystemUtilities .getWindowScaleFactor () > 1 ) {
3535 setRowHeight ((int )(origHeight * SystemUtilities .getWindowScaleFactor ()));
3636 }
3737
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public static double getScaleFactor() {
3131 } catch (Throwable t ) {
3232 log .warn ("An error occurred initializing the Gtk library" , t );
3333 }
34- return 0 ;
34+ return 1 ;
3535 }
3636
3737 private static GTK getGtkInstance () {
@@ -88,7 +88,7 @@ private static double getGtk3ScaleFactor(GTK3 gtk3) {
8888 Pointer screen = gtk3 .gdk_display_get_default_screen (display );
8989 return gtk3 .gdk_screen_get_monitor_scale_factor (screen , 0 );
9090 }
91- return 0 ;
91+ return 1 ;
9292 }
9393
9494 /**
You can’t perform that action at this time.
0 commit comments