test/testime.c
branchgsoc2009_IME
changeset 3132 88861448961f
parent 3131 009bd8f81947
child 3133 84119fe89d26
     1.1 --- a/test/testime.c	Wed Jul 01 05:52:17 2009 +0000
     1.2 +++ b/test/testime.c	Wed Jul 01 07:33:58 2009 +0000
     1.3 @@ -111,6 +111,15 @@
     1.4              SDL_StartTextInput(&markedRect);
     1.5              break;
     1.6  
     1.7 +        case SDL_TEXTEDITING:
     1.8 +            fprintf(stderr, "text editing \"%s\", selected range (%d, %d)\n",
     1.9 +                    event.edit.text, event.edit.start, event.edit.length);
    1.10 +
    1.11 +            SDL_FillRect(screen, &markedRect, backColor);
    1.12 +            render_text(screen, font, event.edit.text, markedRect.x, markedRect.y, textColor);
    1.13 +            SDL_Flip(screen);
    1.14 +            break;
    1.15 +
    1.16          case SDL_QUIT:
    1.17              done = 1;
    1.18              break;