- Add msvcrt linking where needed

- Change "rintf" unixism to ceil() and data conversion to integer type

svn path=/trunk/; revision=24031
This commit is contained in:
Aleksey Bragin 2006-09-10 16:32:37 +00:00
parent af9e8a64e7
commit a9d0596841
3 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,7 @@
<library>kernel32</library>
<library>user32</library>
<library>comctl32</library>
<library>msvcrt</library>
<file>access.c</file>
<file>display.c</file>
<file>general.c</file>

View file

@ -235,7 +235,7 @@ ButtonProc(IN HWND hwndDlg,
SendMessage(hDlgCtrl, TBM_SETRANGE, (WPARAM)TRUE, (LPARAM)MAKELONG(0, 14));
pos = ((float)g_DoubleClickSpeed / MAX_DOUBLE_CLICK_SPEED);
pos /= (1.0f/11.0f);
SendMessage(hDlgCtrl, TBM_SETPOS, (WPARAM)TRUE, (LPARAM)(INT)rintf(pos));
SendMessage(hDlgCtrl, TBM_SETPOS, (WPARAM)TRUE, (LPARAM)(INT)ceil(pos));
}

View file

@ -10,6 +10,7 @@
<library>kernel32</library>
<library>user32</library>
<library>comctl32</library>
<library>msvcrt</library>
<library>devmgr</library>
<file>mmsys.c</file>
<file>mmsys.rc</file>