Fixed font DPI scaling
This commit is contained in:
parent
c85b159d46
commit
1d25d58c26
2 changed files with 8 additions and 6 deletions
|
@ -21,8 +21,8 @@ struct NotificationData {
|
|||
};
|
||||
|
||||
template<typename T>
|
||||
inline T ScaleForDpi(T value, unsigned dpi) {
|
||||
return value * dpi / 96;
|
||||
constexpr T ScaleForDpi(T value, unsigned dpi, unsigned source_dpi = 96) {
|
||||
return value * dpi / source_dpi;
|
||||
}
|
||||
|
||||
struct ScreenMetrics {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue