mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
winemac: Clear the latentDisplayModes instance variable before realizing the latent modes.
This commit is contained in:
parent
42a7d7209b
commit
d4d92a759e
@ -2080,13 +2080,14 @@ int macdrv_err_on;
|
||||
- (void)applicationDidBecomeActive:(NSNotification *)notification
|
||||
{
|
||||
NSNumber* displayID;
|
||||
NSDictionary* modesToRealize = [latentDisplayModes autorelease];
|
||||
|
||||
for (displayID in latentDisplayModes)
|
||||
latentDisplayModes = [[NSMutableDictionary alloc] init];
|
||||
for (displayID in modesToRealize)
|
||||
{
|
||||
CGDisplayModeRef mode = (CGDisplayModeRef)[latentDisplayModes objectForKey:displayID];
|
||||
CGDisplayModeRef mode = (CGDisplayModeRef)[modesToRealize objectForKey:displayID];
|
||||
[self setMode:mode forDisplay:[displayID unsignedIntValue]];
|
||||
}
|
||||
[latentDisplayModes removeAllObjects];
|
||||
|
||||
[self updateCursorClippingState];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user