Author: titmuss
Date: Tue Jan 22 13:56:37 2008
New Revision: 1563

URL: http://svn.slimdevices.com?rev=1563&root=Jive&view=rev
Log:
 [EMAIL PROTECTED] (orig r1548):  titmuss | 2008-01-22 12:45:41 +0000
 Bug: 6311
 Description:
 Added debug to draw text bounding box.
 
 

Modified:
    trunk/   (props changed)
    trunk/jive/src/pkg/jive/src/ui/jive_font.c

Propchange: trunk/
------------------------------------------------------------------------------
--- svk:merge (original)
+++ svk:merge Tue Jan 22 13:56:37 2008
@@ -1,3 +1,3 @@
-bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1547
+bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1548
 bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/SN:1083
 bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/scrolling:1378

Modified: trunk/jive/src/pkg/jive/src/ui/jive_font.c
URL: 
http://svn.slimdevices.com/trunk/jive/src/pkg/jive/src/ui/jive_font.c?rev=1563&root=Jive&r1=1562&r2=1563&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive/src/ui/jive_font.c (original)
+++ trunk/jive/src/pkg/jive/src/ui/jive_font.c Tue Jan 22 13:56:37 2008
@@ -198,6 +198,15 @@
 
        srf = TTF_RenderUTF8_Blended(font->ttf, str, clr);
 
+#if 0
+       // draw text bounding box for debugging
+       if (srf) {
+               rectangleColor(srf, 0,0, srf->w - 1, srf->h - 1, 0xff0000df);
+               lineColor(srf, 0, font->ascend, srf->w - 1, font->ascend, 
0xff0000df);
+       }
+#endif
+
+
 #ifdef JIVE_PROFILE_BLIT
        t1 = SDL_GetTicks();
        printf("\tdraw_ttf_font took=%d %s\n", t1-t0, str);

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to