From 27b6b0ead9b72541e33f6574c9649cf8b59d4605 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sun, 29 Mar 2009 16:36:02 +0000 Subject: x64 portability git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@443 4f64403b-2f21-0410-a795-97e2b3489a10 --- worldtime_protocol/time_display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'worldtime_protocol/time_display.cpp') diff --git a/worldtime_protocol/time_display.cpp b/worldtime_protocol/time_display.cpp index 348085e..2e179ee 100644 --- a/worldtime_protocol/time_display.cpp +++ b/worldtime_protocol/time_display.cpp @@ -77,10 +77,10 @@ INT_PTR CALLBACK DlgProcDisplay(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP RECT br = r, lr = r; br.bottom -= (r.bottom - r.top) / 4; oldFont = (HFONT)SelectObject(hdc, hBigFont); - DrawText(hdc, wd->time_buff, strlen(wd->time_buff), &br, DT_SINGLELINE | DT_VCENTER | DT_CENTER); + DrawText(hdc, wd->time_buff, (int)strlen(wd->time_buff), &br, DT_SINGLELINE | DT_VCENTER | DT_CENTER); SelectObject(hdc, hNormalFont); lr.top = (r.bottom - r.top) * 3 / 4; - DrawText(hdc, wd->date_buff, strlen(wd->date_buff), &lr, DT_SINGLELINE | DT_VCENTER | DT_CENTER); + DrawText(hdc, wd->date_buff, (int)strlen(wd->date_buff), &lr, DT_SINGLELINE | DT_VCENTER | DT_CENTER); SelectObject(hdc, oldFont); } -- cgit v1.2.3