added a switch to windowed mode in E_Exit
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@257
This commit is contained in:
parent
33c702a8e4
commit
b5d4c88ad7
3 changed files with 31 additions and 19 deletions
|
@ -32,23 +32,7 @@
|
|||
//#define DISABLE_JOYSTICK
|
||||
|
||||
|
||||
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];
|
||||
};
|
||||
|
||||
static SDL_Block sdl;
|
||||
SDL_Block sdl;
|
||||
|
||||
GFX_Info gfx_info;
|
||||
|
||||
|
@ -120,6 +104,10 @@ static void SwitchFullScreen(void) {
|
|||
ResetScreen();
|
||||
GFX_Start();
|
||||
}
|
||||
//only prototype existed
|
||||
void GFX_SwitchFullScreen(void) {
|
||||
SwitchFullScreen();
|
||||
}
|
||||
|
||||
static void GFX_Redraw() {
|
||||
#if C_THREADED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue