summaryrefslogtreecommitdiff
path: root/worldtime_protocol/time_display.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2009-03-29 16:36:02 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2009-03-29 16:36:02 +0000
commit27b6b0ead9b72541e33f6574c9649cf8b59d4605 (patch)
treed5e6bdfaa444eab7b858ec2f2ce2c149f612a75a /worldtime_protocol/time_display.cpp
parent3f3cae8fe1f960b278b51b2526c85101fb321fa4 (diff)
x64 portability
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@443 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'worldtime_protocol/time_display.cpp')
-rw-r--r--worldtime_protocol/time_display.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}