mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
uninitialized variables-platform
(cherry picked from commit 36fd324de7a29a8f4bb84b7622ae925acb1d3760)
This commit is contained in:
parent
bfcc83638d
commit
bd8a72005e
7 changed files with 17 additions and 6 deletions
|
|
@ -164,9 +164,7 @@ class AsyncPacketQueue
|
||||||
mConsumer( consumer )
|
mConsumer( consumer )
|
||||||
|
|
||||||
{
|
{
|
||||||
#ifdef TORQUE_DEBUG
|
|
||||||
mTotalQueuedPackets = 0;
|
mTotalQueuedPackets = 0;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return true if there are currently
|
/// Return true if there are currently
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ FileDialogData::FileDialogData()
|
||||||
mTitle = StringTable->EmptyString();
|
mTitle = StringTable->EmptyString();
|
||||||
|
|
||||||
mStyle = 0;
|
mStyle = 0;
|
||||||
|
mOpaqueData = NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
FileDialogData::~FileDialogData()
|
FileDialogData::~FileDialogData()
|
||||||
|
|
@ -123,6 +124,7 @@ FileDialog::FileDialog() : mData()
|
||||||
mData.mStyle = FileDialogData::FDS_OPEN | FileDialogData::FDS_MUSTEXIST;
|
mData.mStyle = FileDialogData::FDS_OPEN | FileDialogData::FDS_MUSTEXIST;
|
||||||
mChangePath = false;
|
mChangePath = false;
|
||||||
mForceRelativePath = true;
|
mForceRelativePath = true;
|
||||||
|
mBoolTranslator = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileDialog::~FileDialog()
|
FileDialog::~FileDialog()
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@ Thread::Thread(ThreadRunFunction func, void* arg, bool start_thread, bool autode
|
||||||
mData->mDead = false;
|
mData->mDead = false;
|
||||||
mData->mSdlThread = NULL;
|
mData->mSdlThread = NULL;
|
||||||
autoDelete = autodelete;
|
autoDelete = autodelete;
|
||||||
|
shouldStop = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread::~Thread()
|
Thread::~Thread()
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ AsyncPeriodicUpdateThread::AsyncPeriodicUpdateThread( String name,
|
||||||
|
|
||||||
// This is a bit contrived. The 'dueTime' is in 100 nanosecond intervals
|
// This is a bit contrived. The 'dueTime' is in 100 nanosecond intervals
|
||||||
// and relative if it is negative. The period is in milliseconds.
|
// and relative if it is negative. The period is in milliseconds.
|
||||||
|
mIntervalMS = intervalMS;
|
||||||
|
|
||||||
LARGE_INTEGER deltaTime;
|
LARGE_INTEGER deltaTime;
|
||||||
deltaTime.QuadPart = - LONGLONG( intervalMS * 10 /* micro */ * 1000 /* milli */ );
|
deltaTime.QuadPart = - LONGLONG( intervalMS * 10 /* micro */ * 1000 /* milli */ );
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,13 @@ DInputManager::DInputManager()
|
||||||
mJoystickActive = mXInputActive = true;
|
mJoystickActive = mXInputActive = true;
|
||||||
mXInputLib = NULL;
|
mXInputLib = NULL;
|
||||||
|
|
||||||
|
mfnXInputGetState = NULL;
|
||||||
|
mfnXInputSetState = NULL;
|
||||||
|
dMemset(mXInputStateOld, 0, sizeof(mXInputStateOld));
|
||||||
|
dMemset(mXInputStateNew, 0, sizeof(mXInputStateNew));
|
||||||
|
mXInputStateReset = false;
|
||||||
|
mXInputDeadZoneOn = true;
|
||||||
|
|
||||||
for(S32 i=0; i<4; i++)
|
for(S32 i=0; i<4; i++)
|
||||||
mLastDisconnectTime[i] = -1;
|
mLastDisconnectTime[i] = -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -129,6 +129,7 @@ PlatformFont *createPlatformFont(const char *name, dsize_t size, U32 charset /*
|
||||||
|
|
||||||
WinFont::WinFont() : mFont(NULL)
|
WinFont::WinFont() : mFont(NULL)
|
||||||
{
|
{
|
||||||
|
dMemset(&mTextMetric, 0, sizeof(mTextMetric));
|
||||||
}
|
}
|
||||||
|
|
||||||
WinFont::~WinFont()
|
WinFont::~WinFont()
|
||||||
|
|
|
||||||
|
|
@ -49,11 +49,12 @@ public:
|
||||||
mUsingPerfCounter = QueryPerformanceFrequency((LARGE_INTEGER *) &mFrequency);
|
mUsingPerfCounter = QueryPerformanceFrequency((LARGE_INTEGER *) &mFrequency);
|
||||||
if(mUsingPerfCounter)
|
if(mUsingPerfCounter)
|
||||||
mUsingPerfCounter = QueryPerformanceCounter((LARGE_INTEGER *) &mPerfCountCurrent);
|
mUsingPerfCounter = QueryPerformanceCounter((LARGE_INTEGER *) &mPerfCountCurrent);
|
||||||
if(!mUsingPerfCounter)
|
mPerfCountNext = 0.0;
|
||||||
{
|
if (!mUsingPerfCounter)
|
||||||
mTickCountCurrent = GetTickCount();
|
mTickCountCurrent = GetTickCount();
|
||||||
mTickCountNext = 0;
|
else
|
||||||
}
|
mTickCountCurrent = 0;
|
||||||
|
mTickCountNext = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const S32 getElapsedMs()
|
const S32 getElapsedMs()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue