Making pseudo-HiDPI tweaks optional, disabled by default

(see issue #5276)
This commit is contained in:
Hombre57
2019-04-14 16:58:11 +02:00
parent ace5a01136
commit 89e63639be
9 changed files with 41 additions and 18 deletions

View File

@@ -36,6 +36,12 @@ Gtk::TextDirection RTScalable::direction = Gtk::TextDirection::TEXT_DIR_NONE;
void RTScalable::setDPInScale (const double newDPI, const int newScale)
{
if (!options.pseudoHiDPISupport) {
scale = 1;
dpi = baseDPI;
return;
}
if (scale != newScale || (scale == 1 && dpi != newDPI)) {
// reload all images
scale = newScale;