unsupported screen resolution crashes sdl-qemu
Bug #1216368 reported by
Sascha Krissler
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| QEMU |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
if the (windows) guest sets a screen resolution that the SDL backend does not support,
qemu does an exit(1).
with this fix, the the resolution is still wrong (only part of the desktop is displayed),
but qemu keeps running and the guest can auto-revert the video mode:
ui/sdl.
SDL_Surface * tmp_screen;
tmp_screen = SDL_SetVideoMod
if (!tmp_screen) {
// fprintf(stderr, "Could not open SDL display (%dx%dx%d): %s\n", width,
// height, bpp, SDL_GetError());
// exit(1);
} else {
real_screen = tmp_screen;
}
To post a comment you must log in.

Sorry, a little confusion what's the problem you want to solve?