mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: Use isKioskMode() getter where appropriate in peer
This commit is contained in:
parent
d95cb61acf
commit
85a17809ab
1 changed files with 2 additions and 3 deletions
|
|
@ -2557,7 +2557,7 @@ private:
|
|||
// On Windows 11, the native drop shadow also gives us a 1px transparent border and rounded
|
||||
// corners, which doesn't look great in kiosk mode. Disable the native shadow for
|
||||
// fullscreen windows.
|
||||
return Desktop::getInstance().getKioskModeComponent() != &component
|
||||
return ! isKioskMode()
|
||||
&& (0 != (styleFlags & windowHasDropShadow))
|
||||
&& (0 == (styleFlags & windowIsSemiTransparent))
|
||||
&& (0 == (styleFlags & windowIsTemporary));
|
||||
|
|
@ -3903,8 +3903,7 @@ private:
|
|||
// and if Microsoft's own VS Code doesn't have perfect mouse handling I don't
|
||||
// think we can be expected to either!
|
||||
|
||||
if ((styleFlags & windowIsResizable) != 0
|
||||
&& Desktop::getInstance().getKioskModeComponent() != &component)
|
||||
if ((styleFlags & windowIsResizable) != 0 && ! isKioskMode())
|
||||
{
|
||||
const ScopedThreadDPIAwarenessSetter scope { hwnd };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue