Fix STR #2525. The bug was PPC-specific.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
e2ddb1715c
commit
253dfe93c1
@ -320,12 +320,13 @@ double fl_width(const char* txt, int n) {
|
||||
return fl_width(uniStr, wc_len);
|
||||
}
|
||||
|
||||
double fl_width(uchar c) {
|
||||
/*double fl_width(uchar c) {
|
||||
return fl_width((const char*)(&c), 1);
|
||||
}
|
||||
}*/
|
||||
|
||||
double fl_width(unsigned int wc) {
|
||||
return fl_width((const UniChar*)(&wc), 1);
|
||||
UniChar uc = wc;
|
||||
return fl_width(&uc, 1);
|
||||
}
|
||||
|
||||
// text extent calculation
|
||||
|
||||
Loading…
Reference in New Issue
Block a user