-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
2 changed files
with
43 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters