Merge lp:~bregma/unity/lp-1100120 into lp:unity

Proposed by Stephen M. Webb
Status: Merged
Approved by: Brandon Schaefer
Approved revision: no longer in the source branch.
Merged at revision: 3524
Proposed branch: lp:~bregma/unity/lp-1100120
Merge into: lp:unity
Diff against target: 20 lines (+2/-2)
1 file modified
unity-shared/OverlayRenderer.cpp (+2/-2)
To merge this branch: bzr merge lp:~bregma/unity/lp-1100120
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
Brandon Schaefer (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+186520@code.launchpad.net

Commit message

render the Dash frame all the way to the bottom of the screen (lp: #1100120)

Description of the change

= Problem description =

The bottom of the Dash frame is not rendered all the way to the bottom of the screen (lp: 1100120).

= The fix =

The clipping area for the dash when not rendered in fullscreen mode was calculated incorrectly. This was adjusted.

= Test coverage =

There are no tests for this. I tried to come up with some way to verify clipping values, but there are just too many magic adjustment values hardcoded in the rendering code that any exposure of the base values would require insane adjustments in test code, which would just increase the maintenance nightmare factorially.

This is just one of those visual-confirmation of rendered graphics kind of verification situations.

To post a comment you must log in.
Revision history for this message
Christopher Townsend (townsend) wrote :

Although the border does extend further towards the bottom of the screen/Launcher, I can still see a gap:(

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

This should probably be tested some, but I found the following to work:

- nux::Geometry geo_border(content_geo.x, content_geo.y, larger_absolute_geo.width - content_geo.x, larger_absolute_geo.height - content_geo.y + excess_border);
+ nux::Geometry geo_border(content_geo.x, content_geo.y, larger_absolute_geo.width - content_geo.x, larger_absolute_geo.height);

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Loooks good to me!

review: Approve
Revision history for this message
Christopher Townsend (townsend) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'unity-shared/OverlayRenderer.cpp'
2--- unity-shared/OverlayRenderer.cpp 2013-04-12 16:01:19 +0000
3+++ unity-shared/OverlayRenderer.cpp 2013-09-19 22:09:43 +0000
4@@ -1,6 +1,6 @@
5 // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
6 /*
7- * Copyright (C) 2011 Canonical Ltd
8+ * Copyright (C) 2011-2013 Canonical Ltd
9 *
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 3 as
12@@ -553,7 +553,7 @@
13
14 if (Settings::Instance().form_factor() != FormFactor::NETBOOK || force_edges)
15 {
16- nux::Geometry geo_border(content_geo.x, content_geo.y, larger_absolute_geo.width - content_geo.x, larger_absolute_geo.height - content_geo.y);
17+ nux::Geometry geo_border(content_geo.x, content_geo.y, larger_absolute_geo.width - content_geo.x, larger_absolute_geo.height);
18 gfx_context.PushClippingRectangle(geo_border);
19
20 // Paint the edges