Commit 8b356767 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

Mac OS X gui: Fade out in a smoother way.

parent 4f6f54d1
......@@ -228,8 +228,8 @@
return;
}
if( [self alphaValue] > 0.0 )
[self setAlphaValue:[self alphaValue]-0.1];
if( [self alphaValue] <= 0.1 )
[self setAlphaValue:[self alphaValue]-0.05];
if( [self alphaValue] <= 0.05 )
{
b_displayed = NO;
[self setAlphaValue:0.0];
......@@ -280,7 +280,7 @@
if( ( [self alphaValue] > 0.0 ) )
{
if (![self fadeTimer])
[self setFadeTimer:[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(unfocus:) userInfo:[NSNumber numberWithShort:0] repeats:YES]];
[self setFadeTimer:[NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:@selector(unfocus:) userInfo:[NSNumber numberWithShort:0] repeats:YES]];
else if ([[[self fadeTimer] userInfo] shortValue]==1)
b_fadeQueued=YES;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment