Browse Source

Fix mouse recentering.

Existing fix didn't apply until after SecurePreloader completed.
This disables the mouse recentering earlier.
Joseph Davies 13 years ago
parent
commit
02e38f981e
  1. 3
      Sources/Plasma/Apps/plClient/plClient.cpp

3
Sources/Plasma/Apps/plClient/plClient.cpp

@ -1309,8 +1309,6 @@ void plClient::IIncProgress (hsScalar byHowMuch, const char * text)
//============================================================================ //============================================================================
void plClient::IStartProgress( const char *title, hsScalar len ) void plClient::IStartProgress( const char *title, hsScalar len )
{ {
plInputManager::SetRecenterMouse(false);
if (fProgressBar) if (fProgressBar)
{ {
fProgressBar->SetLength(fProgressBar->GetMax()+len); fProgressBar->SetLength(fProgressBar->GetMax()+len);
@ -1555,6 +1553,7 @@ hsBool plClient::StartInit()
pfGameGUIMgr::GetInstance()->SetAspectRatio( aspectratio ); pfGameGUIMgr::GetInstance()->SetAspectRatio( aspectratio );
plMouseDevice::Instance()->SetDisplayResolution((float)fPipeline->Width(), (float)fPipeline->Height()); plMouseDevice::Instance()->SetDisplayResolution((float)fPipeline->Width(), (float)fPipeline->Height());
plInputManager::SetRecenterMouse(false);
// create the listener for the audio system: // create the listener for the audio system:
plListener* pLMod = TRACKED_NEW plListener; plListener* pLMod = TRACKED_NEW plListener;

Loading…
Cancel
Save