Author: manolo
Date: 2011-01-07 08:19:30 -0800 (Fri, 07 Jan 2011)
New Revision: 8213
Log:
Removed compilation warning in fl_font_win32.cxx

Modified:
   branches/branch-1.3/src/fl_font_win32.cxx

Modified: branches/branch-1.3/src/fl_font_win32.cxx
===================================================================
--- branches/branch-1.3/src/fl_font_win32.cxx   2011-01-07 14:47:02 UTC (rev 
8212)
+++ branches/branch-1.3/src/fl_font_win32.cxx   2011-01-07 16:19:30 UTC (rev 
8213)
@@ -388,8 +388,6 @@
 
 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 @@
   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;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to