From: Paul D T. <cr...@us...> - 2005-02-27 16:04:34
|
Update of /cvsroot/crayzedsgui/cegui_mk2/WidgetSets/WindowsLook/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1360/WidgetSets/WindowsLook/src Modified Files: WLEditbox.cpp WLMultiLineEditbox.cpp Log Message: Various portability tweaks. Index: WLEditbox.cpp =================================================================== RCS file: /cvsroot/crayzedsgui/cegui_mk2/WidgetSets/WindowsLook/src/WLEditbox.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** WLEditbox.cpp 5 Feb 2005 09:08:55 -0000 1.9 --- WLEditbox.cpp 27 Feb 2005 16:03:53 -0000 1.10 *************** *** 117,121 **** position 'pt'. *************************************************************************/ ! ulong WLEditbox::getTextIndexFromPosition(const Point& pt) const { // --- 117,121 ---- position 'pt'. *************************************************************************/ ! size_t WLEditbox::getTextIndexFromPosition(const Point& pt) const { // Index: WLMultiLineEditbox.cpp =================================================================== RCS file: /cvsroot/crayzedsgui/cegui_mk2/WidgetSets/WindowsLook/src/WLMultiLineEditbox.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** WLMultiLineEditbox.cpp 27 Feb 2005 14:21:21 -0000 1.5 --- WLMultiLineEditbox.cpp 27 Feb 2005 16:03:53 -0000 1.6 *************** *** 274,282 **** // calculate position of carat const Font* fnt = getFont(); ! uint caratLine = getLineNumberFromIndex(d_caratPos); if (caratLine < (uint)d_lines.size()) { ! uint caratLineIdx = d_caratPos - d_lines[caratLine].d_startIdx; float ypos = caratLine * fnt->getLineSpacing(); --- 274,282 ---- // calculate position of carat const Font* fnt = getFont(); ! size_t caratLine = getLineNumberFromIndex(d_caratPos); if (caratLine < (uint)d_lines.size()) { ! size_t caratLineIdx = d_caratPos - d_lines[caratLine].d_startIdx; float ypos = caratLine * fnt->getLineSpacing(); |