Author: titmuss
Date: Tue Jan 22 04:45:41 2008
New Revision: 1548
URL: http://svn.slimdevices.com?rev=1548&root=Jive&view=rev
Log:
Bug: 6311
Description:
Added debug to draw text bounding box.
Modified:
branches/7.0/jive/src/pkg/jive/src/ui/jive_font.c
Modified: branches/7.0/jive/src/pkg/jive/src/ui/jive_font.c
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/src/ui/jive_font.c?rev=1548&root=Jive&r1=1547&r2=1548&view=diff
==============================================================================
--- branches/7.0/jive/src/pkg/jive/src/ui/jive_font.c (original)
+++ branches/7.0/jive/src/pkg/jive/src/ui/jive_font.c Tue Jan 22 04:45:41 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