Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzVideo.m @ 4049:60f677630282 SDL-1.2
Added key composition support, courtesy of Kuon
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 11 Jul 2007 07:53:12 +0000 |
parents | c5c3c772f5aa |
children | 0c76e6d1c3d6 |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzVideo.m Wed Jul 11 07:47:47 2007 +0000 +++ b/src/video/quartz/SDL_QuartzVideo.m Wed Jul 11 07:53:12 2007 +0000 @@ -169,6 +169,7 @@ static int QZ_VideoInit (_THIS, SDL_PixelFormat *video_format) { + NSRect r = NSMakeRect(0.0, 0.0, 0.0, 0.0); const char *env = NULL; /* Initialize the video settings; this data persists between mode switches */ @@ -202,6 +203,7 @@ cursor_should_be_visible = YES; cursor_visible = YES; current_mods = 0; + field_edit = [[NSTextView alloc] initWithFrame:r]; if ( Gestalt(gestaltSystemVersion, &system_version) != noErr ) system_version = 0; @@ -1456,6 +1458,11 @@ opengl_library = NULL; } this->gl_config.driver_loaded = 0; + + if (field_edit) { + [field_edit release]; + field_edit = NULL; + } } #if 0 /* Not used (apparently, it's really slow) */