N306: DPI changes

This commit is contained in:
Nicolas Mailloux 2023-04-01 09:28:24 -04:00
parent 4dc4e7a51a
commit ef32ae3b04

View file

@ -226,7 +226,7 @@ settings::settings(QWidget *parent) :
ui->uiScalingSlider->setValue(2); ui->uiScalingSlider->setValue(2);
} }
} }
else if(global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "n306\n" or global::deviceID == "emu\n") { else if(global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "emu\n") {
if(dpi_number == 195) { if(dpi_number == 195) {
ui->uiScalingSlider->setValue(0); ui->uiScalingSlider->setValue(0);
} }
@ -237,6 +237,17 @@ settings::settings(QWidget *parent) :
ui->uiScalingSlider->setValue(2); ui->uiScalingSlider->setValue(2);
} }
} }
else if(global::deviceID == "n306\n") {
if(dpi_number == 212) {
ui->uiScalingSlider->setValue(0);
}
if(dpi_number == 227) {
ui->uiScalingSlider->setValue(1);
}
if(dpi_number == 242) {
ui->uiScalingSlider->setValue(3);
}
}
else if(global::deviceID == "n437\n") { else if(global::deviceID == "n437\n") {
if(dpi_number == 275) { if(dpi_number == 275) {
ui->uiScalingSlider->setValue(0); ui->uiScalingSlider->setValue(0);
@ -647,9 +658,12 @@ void settings::on_uiScalingSlider_valueChanged(int value)
if(global::deviceID == "n905\n" or global::deviceID == "kt\n") { if(global::deviceID == "n905\n" or global::deviceID == "kt\n") {
string_writeconfig(".config/09-dpi/config", "160"); string_writeconfig(".config/09-dpi/config", "160");
} }
if(global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "n306\n" or global::deviceID == "emu\n") { if(global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "emu\n") {
string_writeconfig(".config/09-dpi/config", "195"); string_writeconfig(".config/09-dpi/config", "195");
} }
if(global::deviceID == "n306\n") {
string_writeconfig(".config/09-dpi/config", "212");
}
if(global::deviceID == "n437\n") { if(global::deviceID == "n437\n") {
string_writeconfig(".config/09-dpi/config", "275"); string_writeconfig(".config/09-dpi/config", "275");
} }
@ -664,9 +678,12 @@ void settings::on_uiScalingSlider_valueChanged(int value)
if(global::deviceID == "n905\n" or global::deviceID == "kt\n") { if(global::deviceID == "n905\n" or global::deviceID == "kt\n") {
string_writeconfig(".config/09-dpi/config", "187"); string_writeconfig(".config/09-dpi/config", "187");
} }
if(global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "n306\n" or global::deviceID == "emu\n") { if(global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "emu\n") {
string_writeconfig(".config/09-dpi/config", "210"); string_writeconfig(".config/09-dpi/config", "210");
} }
if(global::deviceID == "n306\n") {
string_writeconfig(".config/09-dpi/config", "227");
}
if(global::deviceID == "n437\n") { if(global::deviceID == "n437\n") {
string_writeconfig(".config/09-dpi/config", "290"); string_writeconfig(".config/09-dpi/config", "290");
} }
@ -681,9 +698,12 @@ void settings::on_uiScalingSlider_valueChanged(int value)
if(global::deviceID == "n905\n" or global::deviceID == "kt\n") { if(global::deviceID == "n905\n" or global::deviceID == "kt\n") {
string_writeconfig(".config/09-dpi/config", "200"); string_writeconfig(".config/09-dpi/config", "200");
} }
if(global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "n306\n" or global::deviceID == "emu\n") { if(global::deviceID == "n613\n" or global::deviceID == "n236\n" or global::deviceID == "emu\n") {
string_writeconfig(".config/09-dpi/config", "225"); string_writeconfig(".config/09-dpi/config", "225");
} }
if(global::deviceID == "n306\n") {
string_writeconfig(".config/09-dpi/config", "242");
}
if(global::deviceID == "n437\n") { if(global::deviceID == "n437\n") {
string_writeconfig(".config/09-dpi/config", "305"); string_writeconfig(".config/09-dpi/config", "305");
} }