Include emu device in page size functions

This commit is contained in:
Nicolas Mailloux 2021-12-25 13:50:30 -05:00
parent 0b1fb63142
commit 0c465b34e6
2 changed files with 4 additions and 3 deletions

View file

@ -10,6 +10,7 @@
#include <regex> #include <regex>
#include <QThread> #include <QThread>
#include <QTimer> #include <QTimer>
#include <QDebug>
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
@ -513,7 +514,7 @@ namespace {
defaultEpubPageHeight = 425; defaultEpubPageHeight = 425;
defaultEpubPageWidth = 425; defaultEpubPageWidth = 425;
} }
if(checkconfig_str_val == "n613\n") { if(checkconfig_str_val == "n613\n" or checkconfig_str_val == "emu\n") {
defaultEpubPageHeight = 450; defaultEpubPageHeight = 450;
defaultEpubPageWidth = 450; defaultEpubPageWidth = 450;
} }
@ -528,7 +529,7 @@ namespace {
defaultPdfPageHeight = 750; defaultPdfPageHeight = 750;
defaultPdfPageWidth = 550; defaultPdfPageWidth = 550;
} }
else if(checkconfig_str_val == "n613\n") { else if(checkconfig_str_val == "n613\n" or checkconfig_str_val == "emu\n") {
defaultPdfPageHeight = 974; defaultPdfPageHeight = 974;
defaultPdfPageWidth = 708; defaultPdfPageWidth = 708;
} }

View file

@ -87,7 +87,7 @@ MainWindow::MainWindow(QWidget *parent)
wifiIconWidth = sW / 22.5; wifiIconWidth = sW / 22.5;
wifiIconHeight = sH / 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; stdIconWidth = sW / 12.5;
stdIconHeight = sH / 12.5; stdIconHeight = sH / 12.5;
brightnessIconWidth = sW / 24.5; brightnessIconWidth = sW / 24.5;