Ignore:
Timestamp:
Aug 31, 1999, 5:39:21 PM (26 years ago)
Author:
phaller
Message:

Fix: minimum and maximum resolution supported

File:
1 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 $ */
    22
    33/*
     
    170170/*****************************************************************************
    171171 * Name      : OS2TimerResolution::queryCurrentResolution
    172  * Purpose   : determine the maximum resolution currently requested
     172 * Purpose   : determine the minimum resolution currently requested
    173173 * Parameters:
    174174 * Variables :
     
    183183{
    184184  OS2TimerResolution *timeRes = OS2TimerResolution::sTimerResolutions;
    185   int                iMax = -1;
     185  int                iMin = -1;
    186186
    187187  if (timeRes != NULL)              // do we have an entry yet?
     
    190190         timeRes = timeRes->next)
    191191    {
    192       if (timeRes->dwPeriod < iMax) // determine minimum time period
    193         iMax = timeRes->dwPeriod;
    194     }
    195 
    196   return iMax;
     192      if (timeRes->dwPeriod < iMin) // determine minimum time period
     193        iMin = timeRes->dwPeriod;
     194    }
     195
     196  return iMin;
    197197}
    198198
Note: See TracChangeset for help on using the changeset viewer.