SDL Structures moved into sdlmain.cpp
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@340
This commit is contained in:
parent
10e447ac08
commit
bf2bf57ffa
1 changed files with 2 additions and 22 deletions
|
@ -18,8 +18,8 @@
|
|||
|
||||
#ifndef __VIDEO_H
|
||||
#define __VIDEO_H
|
||||
#include <SDL/SDL.h>
|
||||
#include <SDL/SDL_thread.h>
|
||||
|
||||
|
||||
typedef void (GFX_DrawHandler)(Bit8u * vidstart);
|
||||
/* Used to reply to the renderer what size to set */
|
||||
typedef void (GFX_ResizeHandler)(Bitu * width,Bitu * height);
|
||||
|
@ -35,27 +35,8 @@ struct GFX_Info {
|
|||
Bitu width,height,bpp,pitch;
|
||||
};
|
||||
|
||||
|
||||
extern GFX_Info gfx_info;
|
||||
|
||||
struct SDL_Block {
|
||||
bool active; //If this isn't set don't draw
|
||||
Bitu width;
|
||||
Bitu height;
|
||||
Bitu bpp;
|
||||
GFX_DrawHandler * draw;
|
||||
GFX_ResizeHandler * resize;
|
||||
bool mouse_grabbed;
|
||||
bool full_screen;
|
||||
SDL_Thread * thread;
|
||||
SDL_mutex * mutex;
|
||||
SDL_Surface * surface;
|
||||
SDL_Joystick * joy;
|
||||
SDL_Color pal[256];
|
||||
};
|
||||
|
||||
extern SDL_Block sdl;
|
||||
|
||||
void GFX_Events(void);
|
||||
void GFX_SetPalette(Bitu start,Bitu count,GFX_PalEntry * entries);
|
||||
void GFX_SetDrawHandler(GFX_DrawHandler * handler);
|
||||
|
@ -65,6 +46,5 @@ void GFX_Start(void);
|
|||
void GFX_Stop(void);
|
||||
void GFX_SwitchFullScreen(void);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue