From 5782a52a9e0945a220bf135d49210288ee08876c Mon Sep 17 00:00:00 2001 From: "calamity@chromium.org" Date: Thu, 19 Dec 2013 04:06:34 +0000 Subject: Fix the 1px transparent corners in the Windows app window title bar. This CL fixes the drawing of the shell window frame view to not draw a 1px gap into the corners of the title bar. BUG=317922 Review URL: https://codereview.chromium.org/117863002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241788 0039d316-1c4b-4281-b951-d872f2087c98 --- apps/ui/views/shell_window_frame_view.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'apps') diff --git a/apps/ui/views/shell_window_frame_view.cc b/apps/ui/views/shell_window_frame_view.cc index 3efa288..5793fb5 100644 --- a/apps/ui/views/shell_window_frame_view.cc +++ b/apps/ui/views/shell_window_frame_view.cc @@ -308,11 +308,8 @@ void ShellWindowFrameView::OnPaint(gfx::Canvas* canvas) { paint.setStyle(SkPaint::kFill_Style); paint.setColor(SK_ColorWHITE); gfx::Path path; - const int radius = frame_->IsMaximized() ? 0 : 1; - path.moveTo(0, radius); - path.lineTo(radius, 0); - path.lineTo(width() - radius - 1, 0); - path.lineTo(width(), radius + 1); + path.moveTo(0, 0); + path.lineTo(width(), 0); path.lineTo(width(), kCaptionHeight); path.lineTo(0, kCaptionHeight); path.close(); -- cgit v1.1