- fixed the fix in scx_extents_text :-(

This commit is contained in:
frese 2002-06-19 08:45:33 +00:00
parent c4863e589d
commit acc76aa869
1 changed files with 1 additions and 2 deletions

View File

@ -37,12 +37,11 @@ s48_value scx_Text_Width(s48_value Xfontstruct, s48_value text,
s48_value scx_Extents_Text (s48_value Xfontstruct, s48_value text, s48_value scx_Extents_Text (s48_value Xfontstruct, s48_value text,
s48_value format, s48_value which){ s48_value format, s48_value which){
int len = (int)S48_VECTOR_LENGTH(text) int len = (int)S48_VECTOR_LENGTH(text), i, tmp, dir, fasc, fdesc;
char s[len]; char s[len];
XChar2b s2[len]; XChar2b s2[len];
XFontStruct* font = SCX_EXTRACT_FONTSTRUCT(Xfontstruct); XFontStruct* font = SCX_EXTRACT_FONTSTRUCT(Xfontstruct);
XCharStruct CI; XCharStruct CI;
int i, tmp, dir, fasc, fdesc;
if (s48_extract_integer(format) == 1){ if (s48_extract_integer(format) == 1){
for (i = 0; i < len; i++){ for (i = 0; i < len; i++){
tmp = (int)s48_extract_integer(S48_VECTOR_REF(text, i)); tmp = (int)s48_extract_integer(S48_VECTOR_REF(text, i));