diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-09-23 22:03:47 +0200 | 
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-09-23 22:03:47 +0200 | 
| commit | 6eb42cfcdbbdc9bfe0877cf337225fdc9db3c0c2 (patch) | |
| tree | a271baf8968de7fdd9c9c9b6c2e2868b77597f3d /plugins/unityshell/src | |
| parent | f31e26d7fcc04c94e17aaa6b99381fe6ea048e43 (diff) | |
UnityWindow: use another strategy to draw a rounded top border
(bzr r2713.1.11)
Diffstat (limited to 'plugins/unityshell/src')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 33647f71d..165d531ab 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -3553,13 +3553,13 @@ void UnityWindow::DrawWindowDecoration(GLWindowPaintAttrib const& attrib,  const double degrees = M_PI / 180.0;  cairo_new_sub_path(context.cr_); - - cairo_arc(context.cr_, radius, radius, radius, 180 * degrees, 270 * degrees); - cairo_arc(context.cr_, width - radius, radius, radius, -90 * degrees, 0 * degrees); - cairo_line_to(context.cr_, width, height); - cairo_line_to(context.cr_, 0, height); - + cairo_line_to(context.cr_, 0, context.h_); + cairo_arc(context.cr_, radius, radius, radius, M_PI, -M_PI * 0.5f); + cairo_line_to(context.cr_, context.w_ - radius, 0); + cairo_arc(context.cr_, context.w_ - radius, radius, radius, M_PI * 0.5f, 0); + cairo_line_to(context.cr_, context.w_, context.h_);  cairo_close_path(context.cr_); +  cairo_fill(context.cr_);  cairo_restore(context.cr_);  | 
