Fixed a crash when Core Image was available.
[ITKit.git] / ITSplashWindow.m
index 697e99e..63d6923 100644 (file)
@@ -3,9 +3,8 @@
 
 @implementation ITSplashWindow
 
-- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
-{
-       if ( (self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]) ) {
+- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag {
+       if ((self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO])) {
                [self setOpaque:NO];
                [self setBackgroundColor:[NSColor clearColor]];
                [self setHasShadow:YES];
        return self;
 }
 
-- (BOOL)canBecomeKeyWindow
-{
+- (BOOL)canBecomeKeyWindow {
        return YES;
 }
 
-@end
+- (BOOL)isKeyWindow {
+       return YES;
+}
+
+@end
\ No newline at end of file