From 67b915a5dd52a05f8030cd9edc005effd9c8eea5 Mon Sep 17 00:00:00 2001 From: bellard Date: Wed, 31 Mar 2004 23:37:16 +0000 Subject: win32 port (initial patch by kazu) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@692 c046a42c-6fe2-441c-8c8c-71466251a162 --- sdl.c | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) (limited to 'sdl.c') diff --git a/sdl.c b/sdl.c index f705eb7fac..f2dcfbc783 100644 --- a/sdl.c +++ b/sdl.c @@ -21,31 +21,13 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "vl.h" #include -#include "cpu.h" -#include "exec-all.h" - -#include "vl.h" +#ifndef _WIN32 +#include +#endif static SDL_Surface *screen; static int gui_grab; /* if true, all keyboard/mouse events are grabbed */ @@ -291,9 +273,12 @@ void sdl_display_init(DisplayState *ds) fprintf(stderr, "Could not initialize SDL - exiting\n"); exit(1); } + +#ifndef _WIN32 /* NOTE: we still want Ctrl-C to work, so we undo the SDL redirections */ signal(SIGINT, SIG_DFL); signal(SIGQUIT, SIG_DFL); +#endif ds->dpy_update = sdl_update; ds->dpy_resize = sdl_resize; -- cgit v1.2.3