mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
-no-frame option for sdl, by Christian Laursen.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2435 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
20d8a3edb0
commit
43523e9332
3 changed files with 16 additions and 3 deletions
8
sdl.c
8
sdl.c
|
@ -34,6 +34,7 @@ static int gui_grab; /* if true, all keyboard/mouse events are grabbed */
|
|||
static int last_vm_running;
|
||||
static int gui_saved_grab;
|
||||
static int gui_fullscreen;
|
||||
static int gui_noframe;
|
||||
static int gui_key_modifier_pressed;
|
||||
static int gui_keysym;
|
||||
static int gui_fullscreen_initial_grab;
|
||||
|
@ -59,6 +60,8 @@ static void sdl_resize(DisplayState *ds, int w, int h)
|
|||
flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;
|
||||
if (gui_fullscreen)
|
||||
flags |= SDL_FULLSCREEN;
|
||||
if (gui_noframe)
|
||||
flags |= SDL_NOFRAME;
|
||||
|
||||
width = w;
|
||||
height = h;
|
||||
|
@ -469,7 +472,7 @@ static void sdl_cleanup(void)
|
|||
SDL_Quit();
|
||||
}
|
||||
|
||||
void sdl_display_init(DisplayState *ds, int full_screen)
|
||||
void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)
|
||||
{
|
||||
int flags;
|
||||
uint8_t data = 0;
|
||||
|
@ -485,6 +488,9 @@ void sdl_display_init(DisplayState *ds, int full_screen)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if (no_frame)
|
||||
gui_noframe = 1;
|
||||
|
||||
flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE;
|
||||
if (SDL_Init (flags)) {
|
||||
fprintf(stderr, "Could not initialize SDL - exiting\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue