diff options
| author | Manolo Gouy <Manolo> | 2011-01-07 16:19:30 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-01-07 16:19:30 +0000 |
| commit | 63e77dfe56470061d43d1b55ea5eb6e517a98a64 (patch) | |
| tree | 28205dea37a5f5740c6e81d6f8fb2d413d312cb4 /src | |
| parent | 97fce6b74828ec09322d7824ae728f04c6a4c06d (diff) | |
Removed compilation warning in fl_font_win32.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_font_win32.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_font_win32.cxx b/src/fl_font_win32.cxx index 63d51686a..bfbd1f349 100644 --- a/src/fl_font_win32.cxx +++ b/src/fl_font_win32.cxx @@ -388,8 +388,6 @@ void Fl_GDI_Graphics_Driver::draw(int angle, const char* str, int n, int x, int void Fl_GDI_Graphics_Driver::rtl_draw(const char* c, int n, int x, int y) { int wn; - int i = 0; - int lx = 0; wn = fl_utf8toUtf16(c, n, (unsigned short*)wstr, wstr_len); if(wn >= wstr_len) { wstr = (xchar*) realloc(wstr, sizeof(xchar) * (wn + 1)); @@ -400,6 +398,8 @@ void Fl_GDI_Graphics_Driver::rtl_draw(const char* c, int n, int x, int y) { COLORREF oldColor = SetTextColor(fl_gc, fl_RGB()); SelectObject(fl_gc, fl_fontsize->fid); #ifdef RTL_CHAR_BY_CHAR + int i = 0; + int lx = 0; while (i < wn) { // output char by char is very bad for Arabic but coherent with fl_width() lx = (int) fl_width(wstr[i]); x -= lx; |
