mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Platform: Remove compatibility checks for Windows 8.1 and earlier
This commit is contained in:
parent
8ba2dc2ae2
commit
5c1b75cab7
5 changed files with 8 additions and 31 deletions
|
|
@ -69,12 +69,6 @@ void AudioIODeviceType::callDeviceChangeListeners()
|
|||
#if JUCE_WINDOWS && JUCE_WASAPI
|
||||
AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_WASAPI (WASAPIDeviceMode deviceMode)
|
||||
{
|
||||
auto windowsVersion = SystemStats::getOperatingSystemType();
|
||||
|
||||
if (windowsVersion < SystemStats::WinVista
|
||||
|| (WasapiClasses::isLowLatencyMode (deviceMode) && windowsVersion < SystemStats::Windows10))
|
||||
return nullptr;
|
||||
|
||||
return new WasapiClasses::WASAPIAudioIODeviceType (deviceMode);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ private:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
Array<URL> openDialogVistaAndUp()
|
||||
Array<URL> openDialogWithoutPreview()
|
||||
{
|
||||
const auto getUrl = [] (IShellItem& item)
|
||||
{
|
||||
|
|
@ -431,7 +431,7 @@ private:
|
|||
return result;
|
||||
}
|
||||
|
||||
Array<URL> openDialogPreVista (bool async)
|
||||
Array<URL> openDialogWithPreview (bool async)
|
||||
{
|
||||
Array<URL> selections;
|
||||
|
||||
|
|
@ -546,13 +546,10 @@ private:
|
|||
|
||||
const Remover remover (*this);
|
||||
|
||||
if (SystemStats::getOperatingSystemType() >= SystemStats::WinVista
|
||||
&& customComponent == nullptr)
|
||||
{
|
||||
return openDialogVistaAndUp();
|
||||
}
|
||||
if (customComponent == nullptr)
|
||||
return openDialogWithoutPreview();
|
||||
|
||||
return openDialogPreVista (async);
|
||||
return openDialogWithPreview (async);
|
||||
}
|
||||
|
||||
void run() override
|
||||
|
|
|
|||
|
|
@ -216,9 +216,6 @@ std::unique_ptr<ScopedMessageBoxInterface> ScopedMessageBoxInterface::create (co
|
|||
|
||||
static const auto result = [&]() -> TaskDialogIndirectFunc
|
||||
{
|
||||
if (SystemStats::getOperatingSystemType() < SystemStats::WinVista)
|
||||
return nullptr;
|
||||
|
||||
const auto comctl = "Comctl32.dll";
|
||||
LoadLibraryA (comctl);
|
||||
const auto comctlModule = GetModuleHandleA (comctl);
|
||||
|
|
|
|||
|
|
@ -2563,8 +2563,7 @@ private:
|
|||
|
||||
void updateShadower()
|
||||
{
|
||||
if (! component.isCurrentlyModal() && (styleFlags & windowHasDropShadow) != 0
|
||||
&& ((! hasTitleBar()) || SystemStats::getOperatingSystemType() < SystemStats::WinVista))
|
||||
if (! component.isCurrentlyModal() && (styleFlags & windowHasDropShadow) != 0 && ! hasTitleBar())
|
||||
{
|
||||
shadower = component.getLookAndFeel().createDropShadowerForComponent (component);
|
||||
|
||||
|
|
@ -2616,14 +2615,6 @@ private:
|
|||
int getCurrentRenderingEngine() const override;
|
||||
void setCurrentRenderingEngine (int e) override;
|
||||
|
||||
static uint32 getMinTimeBetweenMouseMoves()
|
||||
{
|
||||
if (SystemStats::getOperatingSystemType() >= SystemStats::WinVista)
|
||||
return 0;
|
||||
|
||||
return 1000 / 60; // Throttling the incoming mouse-events seems to still be needed in XP..
|
||||
}
|
||||
|
||||
bool isTouchEvent() noexcept
|
||||
{
|
||||
if (registerTouchWindow == nullptr)
|
||||
|
|
@ -2689,13 +2680,12 @@ private:
|
|||
}
|
||||
|
||||
static uint32 lastMouseTime = 0;
|
||||
static auto minTimeBetweenMouses = getMinTimeBetweenMouseMoves();
|
||||
auto now = Time::getMillisecondCounter();
|
||||
|
||||
if (! Desktop::getInstance().getMainMouseSource().isDragging())
|
||||
modsToSend = modsToSend.withoutMouseButtons();
|
||||
|
||||
if (now >= lastMouseTime + minTimeBetweenMouses)
|
||||
if (now >= lastMouseTime)
|
||||
{
|
||||
lastMouseTime = now;
|
||||
doMouseEvent (position, MouseInputSource::defaultPressure,
|
||||
|
|
|
|||
|
|
@ -187,8 +187,7 @@ public:
|
|||
|
||||
/** Sets the background colour that WebView2 renders underneath all web content.
|
||||
|
||||
This colour must either be fully opaque or transparent. On Windows 7 this
|
||||
colour must be opaque.
|
||||
This colour must either be fully opaque or fully transparent.
|
||||
*/
|
||||
[[nodiscard]] WinWebView2 withBackgroundColour (const Colour& colour) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue