1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

fixed two silly typo bugs

This commit is contained in:
jules 2009-01-02 13:48:31 +00:00
parent 0f6aab6af1
commit 6ea5f864a3
3 changed files with 6 additions and 7 deletions

View file

@ -2314,8 +2314,8 @@ static bool juce_screenSaverEnabled = true;
void Desktop::setScreenSaverEnabled (const bool isEnabled) throw()
{
juce_screenSaverEnabled = isEnabled;
SetThreadExecutionState (isEnabled ? (ES_DISPLAY_REQUIRED | ES_CONTINUOUS)
: ES_CONTINUOUS);
SetThreadExecutionState (isEnabled ? ES_CONTINUOUS
: (ES_DISPLAY_REQUIRED | ES_CONTINUOUS));
}
bool Desktop::isScreenSaverEnabled() throw()

View file

@ -49,7 +49,7 @@
#define PRAGMA_ALIGN_SUPPORTED 1
#endif
#include "../juce_PluginHeaders.h"
#include "../juce_IncludeCharacteristics.h"
#if JucePlugin_Build_VST
@ -109,7 +109,6 @@
#endif
#include "../juce_PluginHeaders.h"
#include "../../../../src/juce_appframework/audio/plugins/formats/juce_VSTMidiEventList.h"
#ifdef _MSC_VER
@ -1490,7 +1489,7 @@ extern "C" __declspec (dllexport) void* main (audioMasterCallback audioMaster)
#if JucePlugin_Build_RTAS
BOOL WINAPI DllMainVST (HINSTANCE instance, DWORD dwReason, LPVOID)
#else
extern "C" BOOL WINAPI DllMain (HINSTANCE hInstance, DWORD ul_reason_for_call, LPVOID lpReserved)
extern "C" BOOL WINAPI DllMain (HINSTANCE instance, DWORD dwReason, LPVOID)
#endif
{
if (dwReason == DLL_PROCESS_ATTACH)

View file

@ -243559,8 +243559,8 @@ static bool juce_screenSaverEnabled = true;
void Desktop::setScreenSaverEnabled (const bool isEnabled) throw()
{
juce_screenSaverEnabled = isEnabled;
SetThreadExecutionState (isEnabled ? (ES_DISPLAY_REQUIRED | ES_CONTINUOUS)
: ES_CONTINUOUS);
SetThreadExecutionState (isEnabled ? ES_CONTINUOUS
: (ES_DISPLAY_REQUIRED | ES_CONTINUOUS));
}
bool Desktop::isScreenSaverEnabled() throw()