Draw Manager: round vertex size up
Without this assigning `gl_PointSize = sizeVertex` made vertices too small.
This commit is contained in:
@@ -99,8 +99,8 @@ void DRW_globals_update(void)
|
||||
ts.sizeLampCircleShadow = ts.sizeLampCircle + U.pixelsize * 3.0f;
|
||||
|
||||
/* M_SQRT2 to be at least the same size of the old square */
|
||||
ts.sizeVertex = UI_GetThemeValuef(TH_VERTEX_SIZE) * M_SQRT2 / 2.0f;
|
||||
ts.sizeFaceDot = UI_GetThemeValuef(TH_FACEDOT_SIZE) * M_SQRT2;
|
||||
ts.sizeVertex = ceil(UI_GetThemeValuef(TH_VERTEX_SIZE) * M_SQRT2 / 2.0f);
|
||||
ts.sizeFaceDot = ceil(UI_GetThemeValuef(TH_FACEDOT_SIZE) * M_SQRT2);
|
||||
ts.sizeEdge = 1.0f / 2.0f; /* TODO Theme */
|
||||
ts.sizeEdgeFix = 0.5f + 2.0f * (2.0f * (MAX2(ts.sizeVertex, ts.sizeEdge)) * M_SQRT1_2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user