mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
impr: More constexpr
This commit is contained in:
@@ -721,11 +721,11 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
private:
|
||||
float pixelsToPoints(float pixels) {
|
||||
constexpr static float pixelsToPoints(float pixels) {
|
||||
return pixels * (72_scaled / 96.0F);
|
||||
}
|
||||
|
||||
float pointsToPixels(float points) {
|
||||
constexpr static float pointsToPixels(float points) {
|
||||
return points / (72_scaled / 96.0F);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user