Skip to content

Commit 522fba3

Browse files
committed
Fix regression caused by #1266
Closes #1282
1 parent 2aba19c commit 522fba3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/qz/ui/component/DisplayTable.java

+1-1
Original file line numberDiff line numberDiff 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

src/qz/utils/GtkUtilities.java

+2-2
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)