diff --git a/src/screencast_keys/ops.py b/src/screencast_keys/ops.py index a9e9f61..fef81de 100644 --- a/src/screencast_keys/ops.py +++ b/src/screencast_keys/ops.py @@ -243,6 +243,8 @@ def circle_verts_num(r): math.pi * 0.5, ] + original_state = gpu.state.blend_get() + gpu.state.blend_set('ALPHA') imm.immColor4f(*color) imm.immLineWidth(line_thickness) @@ -263,6 +265,7 @@ def circle_verts_num(r): imm.immLineWidth(1.0) imm.immColor4f(1.0, 1.0, 1.0, 1.0) + gpu.state.blend_set(original_state) def draw_rect(x1, y1, x2, y2, color):