mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
N306: DPI changes
This commit is contained in:
parent
4dc4e7a51a
commit
ef32ae3b04
1 changed files with 24 additions and 4 deletions
|
@ -226,7 +226,7 @@ settings::settings(QWidget *parent) :
|
|||
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) {
|
||||
ui->uiScalingSlider->setValue(0);
|
||||
}
|
||||
|
@ -237,6 +237,17 @@ settings::settings(QWidget *parent) :
|
|||
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") {
|
||||
if(dpi_number == 275) {
|
||||
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") {
|
||||
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");
|
||||
}
|
||||
if(global::deviceID == "n306\n") {
|
||||
string_writeconfig(".config/09-dpi/config", "212");
|
||||
}
|
||||
if(global::deviceID == "n437\n") {
|
||||
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") {
|
||||
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");
|
||||
}
|
||||
if(global::deviceID == "n306\n") {
|
||||
string_writeconfig(".config/09-dpi/config", "227");
|
||||
}
|
||||
if(global::deviceID == "n437\n") {
|
||||
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") {
|
||||
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");
|
||||
}
|
||||
if(global::deviceID == "n306\n") {
|
||||
string_writeconfig(".config/09-dpi/config", "242");
|
||||
}
|
||||
if(global::deviceID == "n437\n") {
|
||||
string_writeconfig(".config/09-dpi/config", "305");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue