[SDL] SDL 1.3 Text editing

Pavel Kanzelsberger kanzels at gmail.com
Fri Apr 16 04:48:10 PDT 2010


Hello Jiang,

thank you very much for your patch I verified on 10.5 Leopard 32bit  
and 10.6 Snow Leopard 64bit and patch works perfect!! Another  
candidate for repository commit ;-)

Here's a screenshot:
http://img714.imageshack.us/img714/2233/picture1qyv.png

Pavel

On 16.4.2010, at 7:23, Jjgod Jiang wrote:

> Hi Pavel,
>
> On Fri, Apr 16, 2010 at 3:34 AM, Pavel Kanzelsberger <kanzels at gmail.com 
> > wrote:
>> I was just checking some Chinese input methods and some of them  
>> will pop-up some suggestion palette with glyphs you can choose from.
>>
>> I'm using SDL_SetTextInputRect() to acknowledge the OS where my  
>> edit control is placed. On Mac however this seems to not take care  
>> of Window decorations so it's misplaced in final. Currently I need  
>> to offset it by 1 pixel to the right and approx. 19 pixels down to  
>> get in right position (not covering my edit control). Could you  
>> have a look if there's really problem not taking care of Cocoa  
>> window decorations?
>>
>> I think I understand it correctly because in other programs it's  
>> displayed correctly below edit control.
>
> You are right, that's a bug. Please try attached patch to see if it
> works for you.
>
> - Jiang
> <window-height.patch>_______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

---
Pavel Kanzelsberger
http://www.kanzelsberger.com
E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633





More information about the SDL mailing list