aboutsummaryrefslogtreecommitdiff
path: root/include/ui/sdl2.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-11-11 10:21:24 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-12-17 12:43:00 +0100
commit5d0fe65078bcd6949372a49b125dded981856197 (patch)
tree074c52a87c08629209e724b47a7f874246a8368e /include/ui/sdl2.h
parentd29c431edce6c0cd18fc5c4ecf31417c2569ae4a (diff)
sdl2: rename sdl2_state to sdl2_console, move to header file
Create sdl2.h header file, in preparation for sdl2 code splitup. Populate it with sdl2_console struct (renamed from sdl2_state). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/ui/sdl2.h')
-rw-r--r--include/ui/sdl2.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h
new file mode 100644
index 0000000000..3ad5d7d6e0
--- /dev/null
+++ b/include/ui/sdl2.h
@@ -0,0 +1,16 @@
+#ifndef SDL2_H
+#define SDL2_H
+
+struct sdl2_console {
+ DisplayChangeListener dcl;
+ DisplaySurface *surface;
+ SDL_Texture *texture;
+ SDL_Window *real_window;
+ SDL_Renderer *real_renderer;
+ int idx;
+ int last_vm_running; /* per console for caption reasons */
+ int x, y;
+ int hidden;
+};
+
+#endif /* SDL2_H */