From 0c465b34e63ffce1e572fd8a6f2a4611e3af5fef Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Sat, 25 Dec 2021 13:50:30 -0500 Subject: [PATCH] Include emu device in page size functions --- functions.h | 5 +++-- mainwindow.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/functions.h b/functions.h index 6c8ea7d..d3eb55d 100644 --- a/functions.h +++ b/functions.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -513,7 +514,7 @@ namespace { defaultEpubPageHeight = 425; defaultEpubPageWidth = 425; } - if(checkconfig_str_val == "n613\n") { + if(checkconfig_str_val == "n613\n" or checkconfig_str_val == "emu\n") { defaultEpubPageHeight = 450; defaultEpubPageWidth = 450; } @@ -528,7 +529,7 @@ namespace { defaultPdfPageHeight = 750; defaultPdfPageWidth = 550; } - else if(checkconfig_str_val == "n613\n") { + else if(checkconfig_str_val == "n613\n" or checkconfig_str_val == "emu\n") { defaultPdfPageHeight = 974; defaultPdfPageWidth = 708; } diff --git a/mainwindow.cpp b/mainwindow.cpp index 5bbd8f7..bdf287a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -87,7 +87,7 @@ MainWindow::MainWindow(QWidget *parent) wifiIconWidth = sW / 22.5; wifiIconHeight = sH / 22.5; } - else if(checkconfig_str_val == "n613\n") { + else if(checkconfig_str_val == "n613\n" or checkconfig_str_val == "emu\n") { stdIconWidth = sW / 12.5; stdIconHeight = sH / 12.5; brightnessIconWidth = sW / 24.5;