mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 02:00:30 +01:00
Merging r6511 through r6520 from branch releases/1.8 to trunk
Note: Due to OSX always failing merge OSX it's rather applying a second patch from Ryan Schmidt from bugreport #462 to trunk (Not sure why svn merging always fails for OSX. Probably related to MacOSX files getting moved in the past. Was that done without svn move commands? I guess that can't be fixed anymore now) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6521 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
03fc9c73b5
commit
2149bfb317
@ -398,6 +398,9 @@ Changes in 1.9 (not yet released)
|
|||||||
|
|
||||||
--------------------------
|
--------------------------
|
||||||
Changes in 1.8.6
|
Changes in 1.8.6
|
||||||
|
- Fix OSX 10.9X build problem related to NSApplication setDelegate calls getting casted to wrong class (Bug #462 and also fixing older Bug #297)
|
||||||
|
Thanks @Ryan Schmidt for bug report and patch.
|
||||||
|
- Backport: Fix compiling for Apple silicon (Bugs #452 and #461). Thanks @Ryan Schmidt for bug report and updated patch.
|
||||||
- Fix compiling on OSX with case-sensitive filesystems: IrrFramework-Info.plist now always starting with upper-case.
|
- Fix compiling on OSX with case-sensitive filesystems: IrrFramework-Info.plist now always starting with upper-case.
|
||||||
Thanks @Ryan Schmidt for bug report and patch.
|
Thanks @Ryan Schmidt for bug report and patch.
|
||||||
- Fix: The build-in libpng now uses same zlib headers as rest of Irrlicht.
|
- Fix: The build-in libpng now uses same zlib headers as rest of Irrlicht.
|
||||||
|
@ -26,7 +26,7 @@ namespace irr
|
|||||||
class CIrrDeviceMacOSX;
|
class CIrrDeviceMacOSX;
|
||||||
}
|
}
|
||||||
|
|
||||||
@interface CIrrDelegateOSX : NSObject
|
@interface CIrrDelegateOSX : NSObject <NSApplicationDelegate, NSWindowDelegate>
|
||||||
|
|
||||||
- (id)initWithDevice:(irr::CIrrDeviceMacOSX*)device;
|
- (id)initWithDevice:(irr::CIrrDeviceMacOSX*)device;
|
||||||
- (void)terminate:(id)sender;
|
- (void)terminate:(id)sender;
|
||||||
|
@ -579,7 +579,7 @@ CIrrDeviceMacOSX::CIrrDeviceMacOSX(const SIrrlichtCreationParameters& param)
|
|||||||
{
|
{
|
||||||
[[NSAutoreleasePool alloc] init];
|
[[NSAutoreleasePool alloc] init];
|
||||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||||
[NSApp setDelegate:(id<NSApplicationDelegate>)[[[CIrrDelegateOSX alloc] initWithDevice:this] autorelease]];
|
[[NSApplication sharedApplication] setDelegate:[[[CIrrDelegateOSX alloc] initWithDevice:this] autorelease]];
|
||||||
|
|
||||||
// Create menu
|
// Create menu
|
||||||
|
|
||||||
@ -794,7 +794,7 @@ bool CIrrDeviceMacOSX::createWindow()
|
|||||||
{
|
{
|
||||||
if (Window)
|
if (Window)
|
||||||
{
|
{
|
||||||
[Window setDelegate:(id<NSWindowDelegate>)[NSApp delegate]];
|
[Window setDelegate:(CIrrDelegateOSX *)[NSApp delegate]];
|
||||||
[Window setAcceptsMouseMovedEvents:TRUE];
|
[Window setAcceptsMouseMovedEvents:TRUE];
|
||||||
[Window setIsVisible:TRUE];
|
[Window setIsVisible:TRUE];
|
||||||
[Window makeKeyAndOrderFront:nil];
|
[Window makeKeyAndOrderFront:nil];
|
||||||
|
Loading…
Reference in New Issue
Block a user