minor change for high res displays, scale fcurve handles and view3d axis size.

This commit is contained in:
Campbell Barton
2013-06-30 21:41:06 +00:00
parent 2c506fd70c
commit 5dad1b2bb5
2 changed files with 2 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ static void draw_fcurve_vertices_handles(FCurve *fcu, SpaceIpo *sipo, View2D *v2
int i;
/* get view settings */
hsize = UI_GetThemeValuef(TH_HANDLE_VERTEX_SIZE);
hsize = UI_GetThemeValuef(TH_HANDLE_VERTEX_SIZE) * U.pixelsize;
UI_view2d_getscale(v2d, &xscale, &yscale);
/* set handle color */

View File

@@ -592,7 +592,7 @@ static void drawcursor(Scene *scene, ARegion *ar, View3D *v3d)
* colors copied from transform_manipulator.c, we should keep these matching. */
static void draw_view_axis(RegionView3D *rv3d, rcti *rect)
{
const float k = U.rvisize; /* axis size */
const float k = U.rvisize * U.pixelsize; /* axis size */
const float toll = 0.5; /* used to see when view is quasi-orthogonal */
float startx = k + 1.0f; /* axis center in screen coordinates, x=y */
float starty = k + 1.0f;