Merging r6519 through r6561 from trunk to ogl-es branch
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6562 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@@ -579,7 +579,7 @@ CIrrDeviceMacOSX::CIrrDeviceMacOSX(const SIrrlichtCreationParameters& param)
|
||||
{
|
||||
[[NSAutoreleasePool alloc] init];
|
||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||
[NSApp setDelegate:(id<NSApplicationDelegate>)[[[CIrrDelegateOSX alloc] initWithDevice:this] autorelease]];
|
||||
[[NSApplication sharedApplication] setDelegate:[[[CIrrDelegateOSX alloc] initWithDevice:this] autorelease]];
|
||||
|
||||
// Create menu
|
||||
|
||||
@@ -794,7 +794,7 @@ bool CIrrDeviceMacOSX::createWindow()
|
||||
{
|
||||
if (Window)
|
||||
{
|
||||
[Window setDelegate:(id<NSWindowDelegate>)[NSApp delegate]];
|
||||
[Window setDelegate:(CIrrDelegateOSX *)[NSApp delegate]];
|
||||
[Window setAcceptsMouseMovedEvents:TRUE];
|
||||
[Window setIsVisible:TRUE];
|
||||
[Window makeKeyAndOrderFront:nil];
|
||||
@@ -867,7 +867,7 @@ void CIrrDeviceMacOSX::createDriver()
|
||||
SoftwareRendererType = 2;
|
||||
if (Window)
|
||||
{
|
||||
Window.contentView.wantsLayer = YES;
|
||||
[[Window contentView] setWantsLayer:YES];
|
||||
}
|
||||
#else
|
||||
os::Printer::log("No Software driver support compiled in.", ELL_ERROR);
|
||||
@@ -880,7 +880,7 @@ void CIrrDeviceMacOSX::createDriver()
|
||||
SoftwareRendererType = 1;
|
||||
if (Window)
|
||||
{
|
||||
Window.contentView.wantsLayer = YES;
|
||||
[[Window contentView] setWantsLayer:YES];
|
||||
[ Window setOpaque:YES];
|
||||
}
|
||||
|
||||
@@ -1602,7 +1602,7 @@ bool CIrrDeviceMacOSX::present(video::IImage* surface, void* windowId, core::rec
|
||||
NSImage *image = [[[NSImage alloc] initWithSize: imageSize] autorelease];
|
||||
|
||||
[image addRepresentation: rep];
|
||||
Window.contentView.layer.contents = image;
|
||||
[[[Window contentView] layer] setContents:image];
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user