mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
More stuff, fix saved games
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "QDPixMap.h"
|
||||
#include "Externs.h"
|
||||
#include "IconLoader.h"
|
||||
#include "InputManager.h"
|
||||
#include "ResourceFile.h"
|
||||
#include "Utilities.h"
|
||||
|
||||
@@ -24,19 +25,6 @@ UInt32 theSeed;
|
||||
extern Boolean switchedOut;
|
||||
|
||||
|
||||
//============================================================== Functions
|
||||
//-------------------------------------------------------------- MyGetGlobalMouse
|
||||
// Returns the position of the mouse in global coordinates.
|
||||
|
||||
Point MyGetGlobalMouse (void)
|
||||
{
|
||||
Point localWhere;
|
||||
|
||||
GetMouse(&localWhere);
|
||||
LocalToGlobal(&localWhere);
|
||||
return (localWhere);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------- ToolBoxInit
|
||||
|
||||
// The standard ToolBox intialization that must happen when any Mac<61>
|
||||
@@ -574,8 +562,8 @@ void UnivSetSoundVolume (short volume, Boolean hasSM3)
|
||||
// if (hasSM3)
|
||||
// {
|
||||
longVol = (long)volume * 0x0025;
|
||||
if (longVol > 0x00000100)
|
||||
longVol = 0x00000100;
|
||||
if (longVol > 0xff)
|
||||
longVol = 0xff;
|
||||
|
||||
PortabilityLayer::SoundSystem::GetInstance()->SetVolume(longVol);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user