aboutsummaryrefslogtreecommitdiff
path: root/c/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/common.h')
-rw-r--r--c/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/common.h b/c/common.h
index 76f3d6e..d6e5848 100644
--- a/c/common.h
+++ b/c/common.h
@@ -30,7 +30,7 @@ private:
HMODULE m_hModule;
};
-inline int Cmp(int a, int b)
+inline int Cmp(const int a, const int b)
{
if (a == b) return 0;
if (a > b) return 1;
@@ -38,7 +38,7 @@ inline int Cmp(int a, int b)
}
/* Return integer scaled for current DPI. */
-inline int Dpi(int i)
+inline int Dpi(const int i)
{
extern int g_iDPI;
return MulDiv(i, g_iDPI, 96);