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