Fixes hi-dpi on Windows

- Fixes incorrect install path for icons
- Fixes incorrect font size conversion from "Pango units" (updates some comments)
- Fixes incorrect volume icon in directory browser
This commit is contained in:
Pandagrapher
2022-08-29 19:26:41 +02:00
parent 2cd6ba96ca
commit 35ce0d1227
5 changed files with 19 additions and 12 deletions

View File

@@ -195,8 +195,7 @@ void SHCSelector::updateBackBuffer()
// update font
fontd.set_weight (Pango::WEIGHT_NORMAL);
// Absolute size is defined in "Pango units" and shall be multiplied by
// Pango::SCALE from "px"
const double fontSize = static_cast<double>(h) * 0.8; // pt
// Converting font size to "px" based on DPI and scale
#ifndef __APPLE__