Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_text.c Log Message: Round the cursor position. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_text.c,v retrieving revision 1.75 retrieving revision 1.76 diff -u -3 -r1.75 -r1.76 --- ewl_text.c 2 Dec 2005 21:50:07 -0000 1.75 +++ ewl_text.c 3 Dec 2005 06:10:57 -0000 1.76 @@ -275,6 +275,12 @@ evas_textblock_cursor_line_first(cursor); } } + else { + evas_textblock_cursor_char_geometry_get(cursor, + &cx, &cy, &cw, &ch); + if (tx > (cx + ((cw + 1) >> 1))) + idx ++; + } idx += ewl_text_textblock_cursor_to_index(cursor); evas_textblock_cursor_free(cursor); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs