src/video/SDL_video.c
branchgsoc2009_IME
changeset 3135 f4e553ec6a62
parent 3130 fef1a835af43
child 3136 962357f325e1
     1.1 --- a/src/video/SDL_video.c	Thu Aug 06 08:53:00 2009 +0000
     1.2 +++ b/src/video/SDL_video.c	Thu Aug 06 08:56:48 2009 +0000
     1.3 @@ -3068,10 +3068,28 @@
     1.4  }
     1.5  
     1.6  void
     1.7 -SDL_StartTextInput(SDL_Rect *rect)
     1.8 +SDL_StartTextInput(SDL_WindowID windowID)
     1.9  {
    1.10 +    SDL_Window *window = SDL_GetWindowFromID(windowID);
    1.11 +
    1.12      if (_this->StartTextInput) {
    1.13 -        _this->StartTextInput(_this, rect);
    1.14 +        _this->StartTextInput(_this, window);
    1.15 +    }
    1.16 +}
    1.17 +
    1.18 +void
    1.19 +SDL_StopTextInput(void)
    1.20 +{
    1.21 +    if (_this->StopTextInput) {
    1.22 +        _this->StopTextInput(_this);
    1.23 +    }
    1.24 +}
    1.25 +
    1.26 +void
    1.27 +SDL_SetTextInputRect(SDL_Rect *rect)
    1.28 +{
    1.29 +    if (_this->SetTextInputRect) {
    1.30 +        _this->SetTextInputRect(_this, rect);
    1.31      }
    1.32  }
    1.33