correct some warnings, also sensor_x was being paassed to object_camera_matrix(....
[blender.git] / source / blender / editors / space_view3d / view3d_draw.c
index a764ae77c9d4f7d2c7f0f84b126abb7913cbb2ab..aa69e7121e0d35aec6fba55236aa7100a671b229 100644 (file)
@@ -1228,7 +1228,7 @@ static void drawviewborder(Scene *scene, ARegion *ar, View3D *v3d)
                if (ca && (ca->flag & CAM_SHOWSENSOR)) {
                        /* assume fixed sensor width for now */
 
-                       float sensor_aspect = ca->sensor_x / ca->sensor_y;
+                       /* float sensor_aspect = ca->sensor_x / ca->sensor_y; */ /* UNUSED */
                        float sensor_scale = (x2i-x1i) / ca->sensor_x;
                        float sensor_height = sensor_scale * ca->sensor_y;
 
@@ -1238,7 +1238,7 @@ static void drawviewborder(Scene *scene, ARegion *ar, View3D *v3d)
 
                        UI_ThemeColorShade(TH_WIRE, 100);
 
-                       uiDrawBox(GL_LINE_LOOP, x1i, sy1, x2i, sy2, 2.0);
+                       uiDrawBox(GL_LINE_LOOP, x1i, sy1, x2i, sy2, 2.0f);
                }
        }