Merge lp:~mc-return/compiz/compiz.merge-text-improvements into lp:compiz/0.9.10
Proposed by
MC Return
Status: | Merged |
---|---|
Approved by: | MC Return |
Approved revision: | 3754 |
Merged at revision: | 3771 |
Proposed branch: | lp:~mc-return/compiz/compiz.merge-text-improvements |
Merge into: | lp:compiz/0.9.10 |
Diff against target: |
106 lines (+29/-22) 2 files modified
plugins/text/src/private.h (+3/-3) plugins/text/src/text.cpp (+26/-19) |
To merge this branch: | bzr merge lp:~mc-return/compiz/compiz.merge-text-improvements |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Sam Spilsbury | Approve | ||
MC Return | Needs Resubmitting | ||
Review via email: mp+173224@code.launchpad.net |
Commit message
Text, speed improvements:
Introduced
const float halfPi = PI / 2.0f; and
const float triHalfPi = halfPi * 3;
and used those to draw the rounded background.
Introduced
GLfloat xPlusWidth = x + width; and
GLfloat yMinusHeight = y - height;
and used those coordinates for the vertexData array.
Text, cleanup:
Declaration of local variables outside of loops.
Fixed indentation.
Description of the change
Note:
triHalfPi could be PI * 1.5f also.
To post a comment you must log in.
FAILED: Continuous integration, rev:3754 jenkins. qa.ubuntu. com/job/ compiz- ci/240/ jenkins. qa.ubuntu. com/job/ compiz- gles-ci/ ./build= pbuilder, distribution= raring, flavor= amd64/281/ console jenkins. qa.ubuntu. com/job/ compiz- saucy-amd64- ci/53 jenkins. qa.ubuntu. com/job/ compiz- saucy-armhf- ci/53 jenkins. qa.ubuntu. com/job/ compiz- saucy-i386- ci/53
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ compiz- ci/240/ rebuild
http://