mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-24 11:30:52 +00:00
don't skip frame when changing screen size
This commit is contained in:
parent
3426cb7d46
commit
5e2158f85f
@ -403,17 +403,16 @@ void update_display_mask(SDL_Window *window, int w, int h) {
|
|||||||
update_sdl_video(NULL, 1, &rect);
|
update_sdl_video(NULL, 1, &rect);
|
||||||
mask_rects.push_back(rect);
|
mask_rects.push_back(rect);
|
||||||
memset(display_mask.pixels, 0xff, 2 * display_mask.w * display_mask.h);
|
memset(display_mask.pixels, 0xff, 2 * display_mask.w * display_mask.h);
|
||||||
return;
|
} else {
|
||||||
|
// clear all
|
||||||
|
memset(display_mask.pixels, 0, display_mask.w * display_mask.h);
|
||||||
|
|
||||||
|
// show non-desktop
|
||||||
|
uint32 deskPort = ReadMacInt32(0x9E2);
|
||||||
|
uint32 deskPortVisRgn = ReadMacInt32(ReadMacInt32(deskPort + 0x18));
|
||||||
|
MaskRegion(deskPortVisRgn, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear all
|
|
||||||
memset(display_mask.pixels, 0, display_mask.w * display_mask.h);
|
|
||||||
|
|
||||||
// show non-desktop
|
|
||||||
uint32 deskPort = ReadMacInt32(0x9E2);
|
|
||||||
uint32 deskPortVisRgn = ReadMacInt32(ReadMacInt32(deskPort + 0x18));
|
|
||||||
MaskRegion(deskPortVisRgn, false);
|
|
||||||
|
|
||||||
bool has_front_process = false;
|
bool has_front_process = false;
|
||||||
|
|
||||||
M68kRegisters r;
|
M68kRegisters r;
|
||||||
|
Loading…
Reference in New Issue
Block a user