Stop using scale factor for font and pixel size scaling

This commit is contained in:
Pandagrapher
2022-12-09 16:09:03 +01:00
parent cc48ad2aa1
commit 21ebb81ece
10 changed files with 16 additions and 26 deletions

View File

@@ -199,8 +199,7 @@ void SHCSelector::updateBackBuffer()
const double fontSize = static_cast<double>(h) * 0.8; // pt
// Converting font size to "px" based on DPI and scale
#ifndef __APPLE__
const double fontScale = RTScalable::getDPI() / RTScalable::pangoDPI
* static_cast<double>(RTScalable::getScale()); // Refer to notes in rtscalable.h
const double fontScale = RTScalable::getDPI() / RTScalable::pangoDPI; // Refer to notes in rtscalable.h
#else
// On MacOS, font is already scaled by the System library
// Refer to https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gdk/quartz/gdkscreen-quartz.c