From b2aae220e204f75dab9023e0ac009c88eb206dc9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 31 Aug 2008 16:03:55 +0000 Subject: [PATCH] indent --- include/SDL_config_win32.h | 2 +- test/testmmousetablet.c | 115 ++++++++++++++++++++----------------- 2 files changed, 62 insertions(+), 55 deletions(-) diff --git a/include/SDL_config_win32.h b/include/SDL_config_win32.h index e5098b799..094def6e9 100644 --- a/include/SDL_config_win32.h +++ b/include/SDL_config_win32.h @@ -71,7 +71,7 @@ typedef unsigned int uintptr_t; #define SDL_HAS_64BIT_TYPE 1 /* Enabled for SDL 1.2 (binary compatibility) */ -//#define HAVE_LIBC 1 +//#define HAVE_LIBC 1 #ifdef HAVE_LIBC /* Useful headers */ #define HAVE_STDIO_H 1 diff --git a/test/testmmousetablet.c b/test/testmmousetablet.c index 0cc70f3b6..1eaaf231e 100644 --- a/test/testmmousetablet.c +++ b/test/testmmousetablet.c @@ -1,60 +1,67 @@ #include #include "SDL.h" -SDL_Surface* screen; -int quit=0; +SDL_Surface *screen; +int quit = 0; -int main() +int +main() { - SDL_Event event; - int mice; - int i; - printf("Initing...\n"); - if (SDL_Init(0)!=0) { - return 1; - } - if (SDL_InitSubSystem(SDL_INIT_VIDEO)!=0) { - return 1; - } - else { - screen = SDL_SetVideoMode(640, 480, 32, SDL_DOUBLEBUF); - } - mice = SDL_GetNumMice(); - printf("%d pointing devices found\n", mice); - for(i=0; i