MSVC 9 projectfiles update

* blenlib/math_geom_inline.c
* also fix compile error with MSVC (snprintf not defined)
This commit is contained in:
Andrea Weikert
2010-04-15 17:44:48 +00:00
parent 15010c01ae
commit 49fa7d02a7
2 changed files with 6 additions and 2 deletions

View File

@@ -583,6 +583,10 @@
RelativePath="..\..\..\source\blender\blenlib\intern\math_geom.c"
>
</File>
<File
RelativePath="..\..\..\source\blender\blenlib\intern\math_geom_inline.c"
>
</File>
<File
RelativePath="..\..\..\source\blender\blenlib\intern\math_matrix.c"
>

View File

@@ -2162,11 +2162,11 @@ static void draw_viewport_fps(Scene *scene, ARegion *ar)
/* is this more then half a frame behind? */
if (fps+0.5 < FPS) {
UI_ThemeColor(TH_REDALERT);
snprintf(printable, sizeof(printable), "fps: %.2f", (float)fps);
BLI_snprintf(printable, sizeof(printable), "fps: %.2f", (float)fps);
}
else {
UI_ThemeColor(TH_TEXT_HI);
snprintf(printable, sizeof(printable), "fps: %i", (int)(fps+0.5));
BLI_snprintf(printable, sizeof(printable), "fps: %i", (int)(fps+0.5));
}
BLF_draw_default(22, ar->winy-17, 0.0f, printable);