1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Convert custom HeadSpin integer types to standard types from stdint.h

This commit is contained in:
2012-01-19 21:19:26 -05:00
parent a0d54e2644
commit 5027b5a4ac
1301 changed files with 14497 additions and 14532 deletions

View File

@ -298,9 +298,9 @@ void plOperationProgress::IUpdateStats()
fAmtPerSec = progress / hsScalar(elapsed);
else
fAmtPerSec = 0;
fElapsedSecs = (UInt32)elapsed;
fElapsedSecs = (uint32_t)elapsed;
if (progress < fMax)
fRemainingSecs = (UInt32)((fMax - progress) / fAmtPerSec);
fRemainingSecs = (uint32_t)((fMax - progress) / fAmtPerSec);
else
fRemainingSecs = 0;
}

View File

@ -76,10 +76,10 @@ class plOperationProgress
hsScalar fValue, fMax;
char fStatusText[ 256 ];
char fTitle[ 256 ];
UInt32 fContext;
uint32_t fContext;
double fStartTime;
UInt32 fElapsedSecs, fRemainingSecs;
uint32_t fElapsedSecs, fRemainingSecs;
hsScalar fAmtPerSec;
enum Flags
@ -93,7 +93,7 @@ class plOperationProgress
kOverall = 0x40,
kAlwaysDrawText = 0x80,
};
UInt8 fFlags;
uint8_t fFlags;
plOperationProgress *fNext, *fBack;
@ -113,9 +113,9 @@ class plOperationProgress
hsScalar GetProgress( void ) const { return fValue; }
const char * GetTitle( void ) const { return fTitle; }
const char * GetStatusText( void ) const { return fStatusText; }
UInt32 GetContext( void ) const { return fContext; }
UInt32 GetElapsedSecs() { return fElapsedSecs; }
UInt32 GetRemainingSecs() { return fRemainingSecs; }
uint32_t GetContext( void ) const { return fContext; }
uint32_t GetElapsedSecs() { return fElapsedSecs; }
uint32_t GetRemainingSecs() { return fRemainingSecs; }
hsScalar GetAmtPerSec() { return fAmtPerSec; }
// Adds on to current value
@ -134,7 +134,7 @@ class plOperationProgress
void SetTitle( const char *title );
// Application data
void SetContext( UInt32 context ) { fContext = context;}
void SetContext( uint32_t context ) { fContext = context;}
hsBool IsDone( void ) { return ( fValue < fMax ) ? false : true; }