Revision: 41396
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41396
Author:   nazgul
Date:     2011-10-30 23:47:57 +0000 (Sun, 30 Oct 2011)
Log Message:
-----------
Camera tracking integration
===========================

Small changes to current frame label in motion-tracking graph view.

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/editors/space_clip/clip_graph_draw.c

Modified: 
branches/soc-2011-tomato/source/blender/editors/space_clip/clip_graph_draw.c
===================================================================
--- 
branches/soc-2011-tomato/source/blender/editors/space_clip/clip_graph_draw.c    
    2011-10-30 23:35:01 UTC (rev 41395)
+++ 
branches/soc-2011-tomato/source/blender/editors/space_clip/clip_graph_draw.c    
    2011-10-30 23:47:57 UTC (rev 41396)
@@ -92,7 +92,7 @@
        uiStyle *style= UI_GetStyle();
        int fontid= style->widget.uifont_id, fontsize;
        float xscale, yscale, x, y;
-       char str[32] = "    t"; /* t is the character to start replacing from */
+       char str[32];
        short slen;
        float vec[2];
 
@@ -118,7 +118,8 @@
        UI_view2d_getscale(v2d, &xscale, &yscale);
        glScalef(1.0f/xscale, 1.0f, 1.0f);
 
-       BLI_snprintf(&str[4], sizeof(str)-4, "%d", sc->user.framenr);
+       BLI_snprintf(str, sizeof(str), "    %d", sc->user.framenr);
+       BLF_size(fontid, 11.0f, U.dpi);
        slen= BLF_width(fontid, str);
        fontsize= BLF_height(fontid, str);
 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to