mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Drop the vm_running global variable
Use runstate_is_running() instead, which is introduced by this commit. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
1bcef683bf
commit
1354869c38
14 changed files with 29 additions and 27 deletions
6
ui/sdl.c
6
ui/sdl.c
|
@ -409,7 +409,7 @@ static void sdl_update_caption(void)
|
|||
char icon_title[1024];
|
||||
const char *status = "";
|
||||
|
||||
if (!vm_running)
|
||||
if (!runstate_is_running())
|
||||
status = " [Stopped]";
|
||||
else if (gui_grab) {
|
||||
if (alt_grab)
|
||||
|
@ -853,8 +853,8 @@ static void sdl_refresh(DisplayState *ds)
|
|||
{
|
||||
SDL_Event ev1, *ev = &ev1;
|
||||
|
||||
if (last_vm_running != vm_running) {
|
||||
last_vm_running = vm_running;
|
||||
if (last_vm_running != runstate_is_running()) {
|
||||
last_vm_running = runstate_is_running();
|
||||
sdl_update_caption();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue