mirror of https://github.com/snes9xgit/snes9x.git
Mac: pause emulation when the user clicks the view
This commit is contained in:
parent
629296a5c4
commit
bb619e5597
|
@ -2907,6 +2907,12 @@ void QuitWithFatalError ( NSString *message)
|
||||||
os_unfair_lock_unlock(&keyLock);
|
os_unfair_lock_unlock(&keyLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)mouseDown:(NSEvent *)event
|
||||||
|
{
|
||||||
|
pauseEmulation = true;
|
||||||
|
[self setNeedsDisplay:YES];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)drawRect:(NSRect)dirtyRect
|
- (void)drawRect:(NSRect)dirtyRect
|
||||||
{
|
{
|
||||||
os_unfair_lock_lock(&renderLock);
|
os_unfair_lock_lock(&renderLock);
|
||||||
|
|
Loading…
Reference in New Issue