diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-07-29 15:36:43 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-09-15 16:39:32 -0300 |
commit | 1354869c380cf4560fa3f0520e914cb5ee380ac8 (patch) | |
tree | da76e4d2063b81905a66a8446d9301bd910ee856 /ui | |
parent | 1bcef683bf840a928d633755031ac572d5fdb851 (diff) |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/sdl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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(); } |