Mir

Merge lp:~vanvugt/mir/fix-1375660 into lp:mir

Proposed by Daniel van Vugt
Status: Merged
Approved by: Kevin DuBois
Approved revision: no longer in the source branch.
Merged at revision: 1943
Proposed branch: lp:~vanvugt/mir/fix-1375660
Merge into: lp:mir
Diff against target: 15 lines (+1/-4)
1 file modified
playground/demo-shell/demo_renderer.cpp (+1/-4)
To merge this branch: bzr merge lp:~vanvugt/mir/fix-1375660
Reviewer Review Type Date Requested Status
Alberto Aguirre (community) Abstain
Alan Griffiths Approve
Kevin DuBois (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Alexandros Frantzis (community) Approve
Review via email: mp+236486@code.launchpad.net

Commit message

demo shell: Keep colours consistent, regardless of the physical pixel
format of your framebuffer (LP: #1375660)

To post a comment you must log in.
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

I am OK with the change, but was the code like that for a specific reason?

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

lgtm

review: Approve
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I too am curious why the code was like that.

review: Approve
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

Huh? This is premultiplied alpha..

It's should be all 0's....

review: Disapprove
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

Well this is the demo shell...It doesn't matter if its background is not transparent.

review: Abstain
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

Actually now with qtmir, it doesn't matter for the default renderer either (it used to matter for OSK, etc, to initialize a nested surface to a fully transparent background).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'playground/demo-shell/demo_renderer.cpp'
2--- playground/demo-shell/demo_renderer.cpp 2014-09-30 04:37:00 +0000
3+++ playground/demo-shell/demo_renderer.cpp 2014-09-30 10:25:53 +0000
4@@ -174,10 +174,7 @@
5 void DemoRenderer::begin(std::unordered_set<graphics::Renderable::ID> decoration_skip_list_) const
6 {
7 bool const opaque = destination_alpha() == compositor::DestinationAlpha::opaque;
8- if (opaque)
9- glClearColor(0.2f, 0.2f, 0.2f, 1.0f);
10- else
11- glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
12+ glClearColor(0.2f, 0.2f, 0.2f, 1.0f);
13
14 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
15 glClear(GL_COLOR_BUFFER_BIT);

Subscribers

People subscribed via source and target branches