- Timestamp:
- Aug 31, 1999, 5:39:21 PM (26 years ago)
- Location:
- trunk/src/winmm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/os2timer.cpp
r756 r757 1 /* $Id: os2timer.cpp,v 1. 8 1999-08-31 15:04:10 phaller Exp $ */1 /* $Id: os2timer.cpp,v 1.9 1999-08-31 15:39:20 phaller Exp $ */ 2 2 3 3 /* … … 170 170 /***************************************************************************** 171 171 * Name : OS2TimerResolution::queryCurrentResolution 172 * Purpose : determine the m aximum resolution currently requested172 * Purpose : determine the minimum resolution currently requested 173 173 * Parameters: 174 174 * Variables : … … 183 183 { 184 184 OS2TimerResolution *timeRes = OS2TimerResolution::sTimerResolutions; 185 int iM ax= -1;185 int iMin = -1; 186 186 187 187 if (timeRes != NULL) // do we have an entry yet? … … 190 190 timeRes = timeRes->next) 191 191 { 192 if (timeRes->dwPeriod < iM ax) // determine minimum time period193 iM ax= timeRes->dwPeriod;194 } 195 196 return iM ax;192 if (timeRes->dwPeriod < iMin) // determine minimum time period 193 iMin = timeRes->dwPeriod; 194 } 195 196 return iMin; 197 197 } 198 198 -
trunk/src/winmm/os2timer.h
r756 r757 1 /* $Id: os2timer.h,v 1. 4 1999-08-31 15:04:11 phaller Exp $ */1 /* $Id: os2timer.h,v 1.5 1999-08-31 15:39:21 phaller Exp $ */ 2 2 3 3 #ifndef __OS2TIMER_H__ … … 17 17 #define HTIMER int 18 18 #endif 19 20 21 /**************************************************************************** 22 * Definitions * 23 ****************************************************************************/ 24 25 #define OS2TIMER_RESOLUTION_MINIMUM 33 26 #define OS2TIMER_RESOLUTION_MAXIMUM 65535 19 27 20 28 -
trunk/src/winmm/time.cpp
r756 r757 1 /* $Id: time.cpp,v 1. 1 1999-08-31 15:04:11 phaller Exp $ */1 /* $Id: time.cpp,v 1.2 1999-08-31 15:39:21 phaller Exp $ */ 2 2 3 3 /* … … 64 64 dprintf(("WINMM:timeGetDevCaps Not really Implemented\n")); 65 65 66 ptc->wPeriodMin = 1;67 ptc->wPeriodMax = 20;66 ptc->wPeriodMin = OS2TIMER_RESOLUTION_MINIMUM; 67 ptc->wPeriodMax = OS2TIMER_RESOLUTION_MAXIMUM; 68 68 69 69 return TIMERR_NOERROR; … … 163 163 OS2Timer *timer; 164 164 165 // check parameters 166 if ((wDelay < OS2TIMER_RESOLUTION_MINIMUM) || 167 (wDelay > OS2TIMER_RESOLUTION_MINIMUM)) 168 return NULL; 169 170 if (wResolution == 0) 171 wResolution = OS2TIMER_RESOLUTION_MINIMUM; 172 else 173 if ((wResolution < OS2TIMER_RESOLUTION_MINIMUM) || 174 (wResolution > OS2TIMER_RESOLUTION_MINIMUM)) 175 return NULL; 176 165 177 timer = new OS2Timer(); 166 178 if(timer == NULL)
Note:
See TracChangeset
for help on using the changeset viewer.