Revision: 28212
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28212
Author: campbellbarton
Date: 2010-04-15 19:10:46 +0200 (Thu, 15 Apr 2010)
Log Message:
-----------
Render Branch: svn merge
https://svn.blender.org/svnroot/bf-blender/trunk/blender -r28202:28211
Modified Paths:
--------------
branches/render25/source/blender/editors/space_view3d/view3d_draw.c
Modified: branches/render25/source/blender/editors/space_view3d/view3d_draw.c
===================================================================
--- branches/render25/source/blender/editors/space_view3d/view3d_draw.c
2010-04-15 16:59:23 UTC (rev 28211)
+++ branches/render25/source/blender/editors/space_view3d/view3d_draw.c
2010-04-15 17:10:46 UTC (rev 28212)
@@ -2159,15 +2159,15 @@
fps = fps / tot;
}
#endif
-
+
/* is this more then half a frame behind? */
if (fps+0.5 < FPS) {
UI_ThemeColor(TH_REDALERT);
- sprintf(printable, "fps: %.2f", (float)fps);
+ snprintf(printable, sizeof(printable), "fps: %.2f", (float)fps);
}
else {
UI_ThemeColor(TH_TEXT_HI);
- sprintf(printable, "fps: %i", (int)(fps+0.5));
+ snprintf(printable, sizeof(printable), "fps: %i",
(int)(fps+0.5));
}
BLF_draw_default(22, ar->winy-17, 0.0f, printable);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs