Author: manolo
Date: 2010-11-30 03:07:54 -0800 (Tue, 30 Nov 2010)
New Revision: 7922
Log:
Fixes STR #2456. The text background was cleared one pixel too low for very 
"high" characters.

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

Modified: branches/branch-1.3/src/Fl_Text_Display.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Text_Display.cxx 2010-11-30 11:05:38 UTC (rev 
7921)
+++ branches/branch-1.3/src/Fl_Text_Display.cxx 2010-11-30 11:07:54 UTC (rev 
7922)
@@ -826,7 +826,7 @@
   }
   
   fontHeight = mMaxsize;
-  *Y = text_area.y + visLineNum * fontHeight;
+  *Y = text_area.y + visLineNum * fontHeight - 1;
   
   /* Get the text, length, and  buffer position of the line. If the position
    is beyond the end of the buffer and should be at the first position on
@@ -1964,7 +1964,7 @@
   
   if (!(style & TEXT_ONLY_MASK)) {
     fl_color( background );
-    fl_rectf( X, Y, toX - X, mMaxsize );
+    fl_rectf( X, Y - 1, toX - X, mMaxsize );
   }
   if (!(style & BG_ONLY_MASK)) {
     fl_color( foreground );
@@ -2022,7 +2022,7 @@
   } else {
     fl_color( color() );
   }
-  fl_rectf( X, Y, width, height );
+  fl_rectf( X, Y - 1, width, height );
 }
 
 

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

Reply via email to