From: Laszlo T. <ave...@us...> - 2004-11-21 21:19:46
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12367 Modified Files: TextArea.cpp Log Message: Drop Capitals support in TextArea (initials) Index: TextArea.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/TextArea.cpp,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** TextArea.cpp 18 Nov 2004 23:32:41 -0000 1.63 --- TextArea.cpp 21 Nov 2004 21:18:32 -0000 1.64 *************** *** 76,79 **** --- 76,81 ---- return; } + ieDword initials=1; + core->GetDictionary()->Lookup("Drop Capitals", initials); if (!Selectable) { char* Buffer = ( char* ) malloc( 1 ); *************** *** 120,126 **** } ftext->PrintFromLine( startrow, ! Region( x + XPos, y + YPos, Width, Height - 5 ), ! ( unsigned char * ) Buffer, palette, IE_FONT_ALIGN_LEFT, true, ! finit, initpalette ); free( Buffer ); } else { --- 122,129 ---- } ftext->PrintFromLine( startrow, ! Region( x + XPos, y + YPos, Width, Height - 5 ), ! ( unsigned char * ) Buffer, palette, ! IE_FONT_ALIGN_LEFT, !initials, ! finit, initpalette ); free( Buffer ); } else { *************** *** 143,149 **** pal = palette; ftext->PrintFromLine( sr, ! Region( x + XPos, y + YPos, Width, Height - 5 ), ! ( unsigned char * ) lines[i], pal, IE_FONT_ALIGN_LEFT, ! true, finit, initpalette ); yl = lrows[i] - sr; break; --- 146,152 ---- pal = palette; ftext->PrintFromLine( sr, ! Region( x + XPos, y + YPos, Width, Height - 5 ), ! ( unsigned char * ) lines[i], pal, IE_FONT_ALIGN_LEFT, ! !i && !initials, finit, initpalette ); yl = lrows[i] - sr; break; *************** *** 158,164 **** pal = palette; ftext->Print( Region( x + XPos, y + YPos + ! ( yl * ftext->size[1].h/*chars[1]->Height*/ ), Width, ! Height - 5 - ( yl * ftext->size[1].h/*chars[1]->Height*/ ) ), ! ( unsigned char * ) lines[i], pal, IE_FONT_ALIGN_LEFT, true ); yl += lrows[i]; } --- 161,167 ---- pal = palette; ftext->Print( Region( x + XPos, y + YPos + ! ( yl * ftext->size[1].h ), Width, ! Height - 5 - ( yl * ftext->size[1].h) ), ! ( unsigned char * ) lines[i], pal, IE_FONT_ALIGN_LEFT, false ); yl += lrows[i]; } |