- Timestamp:
- Mar 5, 2003, 3:48:45 PM (22 years ago)
- Location:
- trunk/src/winmm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/os2timer.h
r6933 r9901 1 /* $Id: os2timer.h,v 1.1 1 2001-10-03 13:47:58sandervl Exp $ */1 /* $Id: os2timer.h,v 1.12 2003-03-05 14:48:45 sandervl Exp $ */ 2 2 3 3 #ifndef __OS2TIMER_H__ … … 32 32 we need to add support for dynamic detection of this feature. 33 33 */ 34 #define OS2TIMER_RESOLUTION_MINIMUM 234 #define OS2TIMER_RESOLUTION_MINIMUM 1 35 35 #define OS2TIMER_RESOLUTION_MAXIMUM 0x7ffffffe 36 36 -
trunk/src/winmm/time.cpp
r8470 r9901 1 /* $Id: time.cpp,v 1.1 6 2002-05-22 15:50:26sandervl Exp $ */1 /* $Id: time.cpp,v 1.17 2003-03-05 14:48:45 sandervl Exp $ */ 2 2 3 3 /* … … 87 87 MMRESULT WINAPI timeBeginPeriod(UINT cMilliseconds) 88 88 { 89 if (cMilliseconds < OS2TIMER_RESOLUTION_MINIMUM || cMilliseconds > OS2TIMER_RESOLUTION_MAXIMUM) 90 return TIMERR_NOCANDO; 91 89 92 if (TRUE == OS2TimerResolution::enterResolutionScope(cMilliseconds)) 90 93 return TIMERR_NOERROR; … … 108 111 MMRESULT WINAPI timeEndPeriod(UINT cMilliseconds) 109 112 { 113 if (cMilliseconds < OS2TIMER_RESOLUTION_MINIMUM || cMilliseconds > OS2TIMER_RESOLUTION_MAXIMUM) 114 return TIMERR_NOCANDO; 115 110 116 if (TRUE == OS2TimerResolution::leaveResolutionScope(cMilliseconds)) 111 117 return TIMERR_NOERROR;
Note:
See TracChangeset
for help on using the changeset viewer.