diff options
Diffstat (limited to 'c/defs.h')
-rw-r--r-- | c/defs.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -5,7 +5,6 @@ #include <commctrl.h> /* common.c */ -int Dpi(int); TCHAR *TszFromSz(const char *, int); /* main.c */ @@ -28,6 +27,13 @@ void ElvUpdateName(LPLVITEM); HWND DlvCreate(); void DlvShowEpisode(int); +inline int +Dpi(int i) +{ + extern int IDPI; + return MulDiv(i, IDPI, 96); +} + #define P(m,p,a,t) if (!PL_call_predicate(NULL, PL_Q_NORMAL, \ PL_predicate(p,a,m), t)) #define Q(m,p,a,t) PL_open_query(NULL, PL_Q_NORMAL, PL_predicate(p,a,m), t) |