Merge pull request #1467 from Cogitri/constexpr
refactor(Util): add DPI_NORMALIZATION_FACTORpresentation
commit
fc0e823078
5 changed files with 17 additions and 15 deletions
@ -1,11 +1,7 @@ |
||||
#include "FormatDefinitions.h" |
||||
|
||||
#include "Util.h" |
||||
#include <i18n.h> |
||||
|
||||
const FormatUnits XOJ_UNITS[] = { |
||||
{ "cm", 28.346 }, |
||||
{ "in", 72.0 }, |
||||
{ "points", 1.0 } |
||||
}; |
||||
const FormatUnits XOJ_UNITS[] = {{"cm", 28.346}, {"in", Util::DPI_NORMALIZATION_FACTOR}, {"points", 1.0}}; |
||||
|
||||
const int XOJ_UNIT_COUNT = sizeof(XOJ_UNITS) / sizeof(FormatUnits); |
||||
|
||||
Loading…
Reference in new issue