reuk
0223e44ae7
Image: Keep track of contiguous buffer size to avoid heap buffer overflows
...
In CoreGraphicsPixelData::createImage, image data was copied from a
BitmapData created from the Image passed into the function.
The BitmapData instance didn't keep track of the size of the buffer it
pointed to, so the buffer size was computed by multiplying the
BitmapData height by its line stride. However, if the BitmapData pointed
to a subsection of an image, the `data` pointer might be offset from
the allocated region, and `data + lineStride * height` would point past
the end of the allocated region. Trying to read/copy this range would
cause a heap buffer overflow at the end of the range.
This change adjusts BitmapData so that it keeps track of the size of the
allocated region. Taking a subsection of an image should subtract the
data pointer offset from the size of the allocated region.
2022-02-23 10:56:09 +00:00
Attila Szarvas
101a886821
MouseInputSource: Eliminate superfluous drag events caused by pressure change
...
The bug was triggered on Monterey where a pressure of 1 is reported
while a mouse button is being held down. This caused an extra drag
event being triggered between mouse down and up events, even if no
movement occurred.
2022-02-15 10:53:32 +00:00
attila
a7811661c5
Linux: Fix restoreWindowFromStateString() when the peer already exists
2022-02-02 19:53:31 +01:00
reuk
b65803e8a3
Accessbility: Improve support for touch-to-explore on Android
2022-01-17 10:58:17 +00:00
attila
b8094cb200
Android: Fix keyCode calculation and add support for modifier keys
2022-01-04 17:20:07 +01:00
reuk
fe4515adb6
MouseCursor: Refactor platform-specific MouseCursor internals
...
This new factoring is a bit more typesafe, as it avoids casting
internals to void*.
It also allows cursors to scale appropriately on high resolution
displays on Windows.
2021-10-27 16:33:37 +01:00
ed
3d282c1078
Desktop: Deprecate isOSXDarkModeActive() and add isDarkModeActive() for other platforms
2021-09-29 17:40:58 +01:00
ed
74a83440e2
Android Accessibility: Check for valid host pointer when calling into C++ peer code from Java accessibility callbacks
2021-09-15 14:02:15 +01:00
ed
f5eee033ba
NativeMessageBox: Return correctly mapped value when shown modally
2021-09-02 08:35:14 +01:00
ed
8f03215a9e
Accessibility: Add Android support
2021-07-28 11:44:29 +01:00
ed
551d7b9c5b
Add MessageBoxOptions class for specifying a set of AlertWindow and NativeMessageBox options
...
- Add AlertWindow::show() and showAsync() methods that take a MessageBoxOptions argument
- Add NativeMessageBox::show() and showAsync() methods that take a MessageBoxOptions argument
- Update the DialogsDemo to demonstrate the new methods
- Deprecate AlertWindow::showNativeDialogBox() in favour of the NativeMessageBox methods
- Pass button strings specified in MesssageBoxOptions to native dialog boxes correctly
- Use modern TaskDialog on Windows for the native dialog box where available
2021-07-21 16:34:12 +01:00
ed
fd83e0f51e
Removed Displays const_casts from ComponentPeer implementations
2021-02-08 14:38:09 +00:00
ed
ac1425f94e
Added Display::safeAreaInsets and implementations for iOS and Android
2021-02-08 14:38:09 +00:00
ed
6d8c0b2fc3
Android: Set layoutInDisplayCutoutMode to LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS so fullscreen kiosk apps fill the entire display on devices with cutouts
2021-02-08 14:38:09 +00:00
ed
c0cb5dcf34
Android: Tidied up some code in AndroidComponentPeer
2021-02-08 14:38:09 +00:00
reuk
837ab64dbd
Android: Fix numeric conversion warnings
2021-02-03 16:09:54 +00:00
ed
bd86eb667e
Android: Fixed compile error when push notifications are disabled
2021-01-28 11:22:39 +00:00
ed
a7667077f8
Android: Fixed a crash when juce_gui_extra is not present
...
The default main JuceActivity for JUCE apps calls appNewIntent() in its onNewIntent() implementation which is defined in juce_gui_extra. This commit moves the implementation into juce_gui_basics.
2020-12-08 14:49:15 +00:00
ed
b7e28541ca
Replaced deprecated Displays methods
2020-10-27 12:38:59 +00:00
ed
009d685179
Updated all license headers
2020-06-29 08:30:22 +01:00
ed
4c95c227f6
Android: Fixed inverted screensaver logic
2020-06-04 14:51:56 +01:00
Tom Poole
6cb75d9d2c
Replaced all references to ROLI with Raw Material Software and regenerated all bytecode
2020-04-23 17:30:40 +01:00
Tom Poole
894e7d2bd2
Updated all license headers
2020-04-23 17:30:39 +01:00
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
2020-04-09 15:22:56 +01:00
ed
18df1b0937
Added JUCE_CONTENT_SHARING define to conditionally compile the native content sharer code
2020-03-31 18:53:14 +01:00
ed
027e12e3a6
Android: Replaced deprecated AIDL in-app billing code with Google Play Billing library
2020-01-06 16:19:05 +00:00
ed
937991cc83
Fixed broken back button behaviour on Android and updated JUCEApplicationBase::backButtonPressed() to return a bool indicating whether the back event has been handled or not to override this behaviour
2019-08-30 22:03:39 +01:00
Tom Poole
29508fac70
Fixed an issue maintaining kiosk mode on Android
2019-07-09 09:50:07 +01:00
Tom Poole
670f77f80c
Fixed some Android compiler warnings
2019-06-06 16:50:12 +01:00
Tom Poole
16dd26649a
Fixed some GCC compiler warnings and removed deprecated functions
2019-06-04 16:48:44 +01:00
jules
f58eacc135
Added more unique_ptr use, for functions that create LowLevelGraphicsContext or ImageType objects.
2019-05-15 12:08:38 +01:00
ed
6eab395204
Android: Fixed a crash when pressing the back button
2019-02-28 16:27:55 +00:00
ed
8e63662163
Android: Avoid a crash when creating a new peer from within a native activity
2019-01-21 14:04:15 +00:00
hogliux
008b7a9ab2
Re-structured the low-level Android native code
...
Please see the forum post "Re-structuring of JUCE’s low-level Android code" and the BREAKING-CHANGES.txt for more information.
2018-11-13 12:33:40 +00:00
Tom Poole
f0a4b67915
Android: Fixed some compiler warnings
2018-11-09 14:04:46 +00:00
jules
5979288706
Added some macros for asserting when functions are called in an unsafe manner outside the message thread.
2018-10-16 17:39:54 +01:00
jules
df5be847c3
Removed a redundant method and did some minor tidying
2018-10-15 11:53:06 +01:00
ed
b78e63aa02
Moved Displays class out of Desktop and into its own .h/.cpp and deprecated Displays::getDisplayContaining()
2018-08-10 16:37:52 +01:00
ed
4280b51d09
Made the DragAndDropContainer::performExternalDragDropOfFiles() and ::performExternalDragDropOfText() methods asynchronous on Windows so that behaviour is consistent across all platforms and updated the documentation to reflect this
2018-07-18 14:54:08 +01:00
ed
481221a256
Cleaned up the ModifierKeys class and removed the peer-specific implementations of ModifierKeys::getCurrentModifiersRealtime() and ModifierKeys::updateCurrentModifiers()
2018-05-09 10:04:27 +01:00
Lukasz Kozakiewicz
772185f2b0
Add camera support for iOS and Android.
2018-04-25 18:54:04 +02:00
Lukasz Kozakiewicz
3fae666465
Android: restore nav bars visibility on back button press too.
2018-03-02 12:12:50 +00:00
Lukasz Kozakiewicz
4469217b3e
Android: un-focus TextEditor when keyboard is hidden from nav bar. Ensure immersive mode is properly restored. Fix TextEditor not hiding keyboard if deleted immediately after getting focus.
2018-03-02 11:48:37 +00:00
Lukasz Kozakiewicz
780a7662cd
Android: restore nav bar visibility when native keyboard gets dismissed.
2018-03-01 15:47:33 +00:00
Lukasz Kozakiewicz
c90835eafc
Android: do quit the app when calling JUCEApplicationBase::quit(), rather than just placing it in the background (same as on iOS).
2018-01-31 18:45:25 +01:00
Lukasz Kozakiewicz
360449de0b
Android: ensure that navigation/status bar visibility is correctly restored when the app gets resumed.
2017-12-14 16:20:05 +00:00
Lukasz Kozakiewicz
36da4cde05
Add native content sharing support for iOS and Android
2017-12-11 16:08:01 +00:00
jules
f3cde9763a
Quick tidy-up of some messaging classes
2017-12-04 11:30:15 +00:00
hogliux
7e23bf28ae
Added iOS/Android native file chooser support and support for asynchronous invocation of file choosers
2017-11-20 10:56:08 +00:00
Lukasz Kozakiewicz
5d30fcd9b5
Android: move a bunch of generic Android and Java classes to JNI helpers, add Android/Java prefixes to disambiguate.
2017-11-08 18:29:12 +01:00