test/testime.c
changeset 3338 9de326b3099c
parent 3281 2d3a9f229ba1
child 3478 f7541260e89c
     1.1 --- a/test/testime.c	Sun Oct 04 09:51:04 2009 +0000
     1.2 +++ b/test/testime.c	Sun Oct 04 09:55:20 2009 +0000
     1.3 @@ -1,5 +1,5 @@
     1.4  /* A simple program to test the Input Method support in the SDL library (1.3+) */
     1.5 - 
     1.6 +
     1.7  #include <stdlib.h>
     1.8  #include <stdio.h>
     1.9  #include <string.h>
    1.10 @@ -8,7 +8,7 @@
    1.11  #ifdef HAVE_SDL_TTF
    1.12  #include "SDL_ttf.h"
    1.13  #endif
    1.14 - 
    1.15 +
    1.16  #define DEFAULT_PTSIZE  30
    1.17  #define DEFAULT_FONT    "/System/Library/Fonts/华文细黑.ttf"
    1.18  #define MAX_TEXT_LENGTH 256
    1.19 @@ -210,13 +210,13 @@
    1.20  
    1.21  int main(int argc, char *argv[])
    1.22  {
    1.23 +    SDL_Event event;
    1.24 +    int done = 0;
    1.25 +
    1.26      InitVideo(argc, argv);
    1.27      InitInput();
    1.28      Redraw();
    1.29  
    1.30 -    SDL_Event event;
    1.31 -    int done = 0;
    1.32 -
    1.33      while (! done && SDL_WaitEvent(&event))
    1.34      {
    1.35          switch (event.type)