232 |
// At the end of the for loop, this holds the requested model location |
// At the end of the for loop, this holds the requested model location |
233 |
int pos; |
int pos; |
234 |
int currentX = x0; |
int currentX = x0; |
235 |
|
|
236 |
for (pos = p0; pos < s.getEndIndex(); pos++) |
for (pos = p0; pos < s.getEndIndex(); pos++) |
237 |
{ |
{ |
238 |
char nextChar = s.array[pos]; |
char nextChar = s.array[pos]; |
239 |
|
if (nextChar == 0) |
240 |
|
{ |
241 |
|
if (! round) |
242 |
|
pos--; |
243 |
|
break; |
244 |
|
} |
245 |
if (nextChar != '\n') |
if (nextChar != '\n') |
246 |
currentX += fm.charWidth(nextChar); |
currentX += fm.charWidth(nextChar); |
247 |
else |
else |