Xournalpp: Extract DPI normalization into an constexpr

Created on 21 Jul 2019  路  1Comment  路  Source: xournalpp/xournalpp

As mentioned in #1367 the normalization factor for the DPI is hardcoded everywhere in our codebase. It would be better to extract it into an constexpr:

constexpr auto const DPI_NORMALIZATION_FACTOR = 72.0;
easy good first issue low refactoring

Most helpful comment

I guess I'm gonna look into this in a bit since I'll have to learn C++ soon anyway :)

>All comments

I guess I'm gonna look into this in a bit since I'll have to learn C++ soon anyway :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Krzmbrzl picture Krzmbrzl  路  4Comments

cbm755 picture cbm755  路  3Comments

gdolle picture gdolle  路  3Comments

Encefaloniel picture Encefaloniel  路  4Comments

VickySteeves picture VickySteeves  路  3Comments