Revision c35734b2 sdl.c
b/sdl.c | ||
---|---|---|
216 | 216 |
static void sdl_update_caption(void) |
217 | 217 |
{ |
218 | 218 |
char buf[1024]; |
219 |
strcpy(buf, "QEMU"); |
|
220 |
if (!vm_running) { |
|
221 |
strcat(buf, " [Stopped]"); |
|
222 |
} |
|
223 |
if (gui_grab) { |
|
224 |
strcat(buf, " - Press Ctrl-Alt to exit grab"); |
|
225 |
} |
|
219 |
const char *status = ""; |
|
220 |
|
|
221 |
if (!vm_running) |
|
222 |
status = " [Stopped]"; |
|
223 |
else if (gui_grab) |
|
224 |
status = " - Press Ctrl-Alt to exit grab"; |
|
225 |
|
|
226 |
if (qemu_name) |
|
227 |
snprintf(buf, sizeof(buf), "QEMU (%s)%s", qemu_name, status); |
|
228 |
else |
|
229 |
snprintf(buf, sizeof(buf), "QEMU%s", status); |
|
230 |
|
|
226 | 231 |
SDL_WM_SetCaption(buf, "QEMU"); |
227 | 232 |
} |
228 | 233 |
|
Also available in: Unified diff