Fixed font DPI scaling

This commit is contained in:
Ales Pergl 2017-10-06 22:25:44 +02:00
parent c85b159d46
commit 1d25d58c26
2 changed files with 8 additions and 6 deletions

View file

@ -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 {