don't skip frame when changing screen size

This commit is contained in:
Jesús A. Álvarez 2019-11-10 14:17:02 +01:00
parent 3426cb7d46
commit 5e2158f85f

View File

@ -403,17 +403,16 @@ void update_display_mask(SDL_Window *window, int w, int h) {
update_sdl_video(NULL, 1, &rect);
mask_rects.push_back(rect);
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;
M68kRegisters r;