kvm tool, sdl: Set window caption

Fix empty window caption for the tool. We should also display the guest name
but unfortunately the SDL code doesn't know about "struct kvm" so that requires
code reorganization.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Pekka Enberg
2011-08-13 12:38:13 +03:00
committed by Will Deacon
parent 790142ec29
commit 2a77516ba8
+2
View File
@@ -95,6 +95,8 @@ static void *sdl__thread(void *p)
flags = SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL | SDL_DOUBLEBUF;
SDL_WM_SetCaption("KVM tool", "KVM tool");
screen = SDL_SetVideoMode(fb->width, fb->height, fb->depth, flags);
if (!screen)
die("Unable to set SDL video mode");