Skip to content

Commit

Permalink
testing font-dpi to 100 since -1 fucks up a lot of stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Dec 10, 2023
1 parent e3d48aa commit 5b6118d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,14 @@ int main(int argc, char *argv[]) {
QSettings settings;
qDebug()<<"Storing settings at ["<<settings.fileName()<<"]";
// RPI and ROCK - disable font dpi. The user has to scale manually when using displays
// (Bigger than) 640x480 according to its preferences. On rpi, auto scale is just bugged,
// (Big screens) according to its preferences. Auto scale is just bugged,
// nothing more to say.
if(QOpenHD::instance().is_platform_rpi() || QOpenHD::instance().is_platform_rock()){
static constexpr auto TAG_QOPENHD_INITIAL_FONT_DPI_HAS_BEEN_SET="qopenhd_initial_font_dpi_has_been_set";
if(!settings.value(TAG_QOPENHD_INITIAL_FONT_DPI_HAS_BEEN_SET,false).toBool()){
qDebug()<<"RPI/ROCK: Disable font dpi by default";
qDebug()<<"RPI/ROCK: Disable font dpi by default with setting it to 100%";
settings.setValue(TAG_QOPENHD_INITIAL_FONT_DPI_HAS_BEEN_SET,true);
settings.setValue("screen_custom_font_dpi",-1);
settings.setValue("screen_custom_font_dpi",100);
}
}
if(QOpenHD::instance().is_platform_rock()){
Expand Down

0 comments on commit 5b6118d

Please sign in to comment.