Skip to content

Commit 57a37d9

Browse files
committed
Hide supertuxkart in dock if null device for osx
1 parent 3350d6c commit 57a37d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ long GetDictionaryLong(CFDictionaryRef theDict, const void* key)
488488
setDebugName("CIrrDeviceMacOSX");
489489
#endif
490490

491-
if (firstLaunch)
491+
if (CreationParams.DriverType != video::EDT_NULL && firstLaunch)
492492
{
493493
firstLaunch = false;
494494

@@ -512,11 +512,12 @@ long GetDictionaryLong(CFDictionaryRef theDict, const void* key)
512512

513513
initKeycodes();
514514

515-
VideoModeList.setDesktop(CreationParams.Bits, core::dimension2d<u32>([[NSScreen mainScreen] frame].size.width, [[NSScreen mainScreen] frame].size.height));
516-
517515
bool success = true;
518516
if (CreationParams.DriverType != video::EDT_NULL)
517+
{
518+
VideoModeList.setDesktop(CreationParams.Bits, core::dimension2d<u32>([[NSScreen mainScreen] frame].size.width, [[NSScreen mainScreen] frame].size.height));
519519
success = createWindow();
520+
}
520521

521522
// in case of failure, one can check VideoDriver for initialization
522523
if (!success)

0 commit comments

Comments
 (0)