mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-12 01:30:03 +00:00
Re-entry fix (purge vectors in VideoExit()),
animate resizing of window, and centre afterwards
This commit is contained in:
parent
1140676a8c
commit
5b1f064815
@ -449,7 +449,8 @@ resizeWinBy(const short deltaX, const short deltaY)
|
||||
|
||||
D(bug(", new x=%g, y=%g\n", rect.size.width, rect.size.height));
|
||||
|
||||
[the_win setFrame: rect display: YES];
|
||||
[the_win setFrame: rect display: YES animate: YES];
|
||||
[the_win center];
|
||||
rect = [the_win frame];
|
||||
}
|
||||
|
||||
@ -902,6 +903,9 @@ void VideoExit(void)
|
||||
|
||||
for (i = VideoMonitors.begin(); i != end; ++i)
|
||||
dynamic_cast<OSX_monitor *>(*i)->video_close();
|
||||
|
||||
VideoMonitors.clear();
|
||||
VideoModes.clear();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user