diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-05-21 03:50:12 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-05-21 09:34:05 +0300 |
commit | b730238e6d62f38d03cdb6cdcf03e0f0e89668c0 (patch) | |
tree | 2b5f73d8330d595bf707c6b5024e21e7728879c9 /source | |
parent | 2203444f3f3afeab43e4d8aea2f5bad36760b384 (diff) |
GP Sculpt: Make the cursor more visible on light backgrounds
On light coloured backgrounds (especially on white), it was impossible to see
where the cursor was. This commit adds a second ring (black) to the cursor so
that on light backgrounds, even if the light ring isn't visible the black one
will be.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_brush.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c index df05397258c..0271afd6827 100644 --- a/source/blender/editors/gpencil/gpencil_brush.c +++ b/source/blender/editors/gpencil/gpencil_brush.c @@ -866,14 +866,18 @@ static void gp_brush_drawcursor(bContext *C, int x, int y, void *UNUSED(customda glTranslatef((float)x, (float)y, 0.0f); - /* TODO: toggle between add and remove? */ - glColor4ub(255, 255, 255, 128); - glEnable(GL_LINE_SMOOTH); glEnable(GL_BLEND); + /* Inner Ring: Light color for action of the brush */ + /* TODO: toggle between add and remove? */ + glColor4ub(255, 255, 255, 200); glutil_draw_lined_arc(0.0, M_PI * 2.0, brush->size, 40); + /* Outer Ring: Dark color for contrast on light backgrounds (e.g. gray on white) */ + glColor3ub(30, 30, 30); + glutil_draw_lined_arc(0.0, M_PI * 2.0, brush->size + 1, 40); + glDisable(GL_BLEND); glDisable(GL_LINE_SMOOTH); |