Merge lp:~mc-return/compiz/compiz.merge-resizeinfo-minor-improvements into lp:compiz/0.9.9
Status: | Rejected |
---|---|
Rejected by: | Daniel van Vugt |
Proposed branch: | lp:~mc-return/compiz/compiz.merge-resizeinfo-minor-improvements |
Merge into: | lp:compiz/0.9.9 |
Diff against target: |
34 lines (+4/-6) 1 file modified
plugins/resizeinfo/src/resizeinfo.cpp (+4/-6) |
To merge this branch: | bzr merge lp:~mc-return/compiz/compiz.merge-resizeinfo-minor-improvements |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Disapprove | ||
MC Return | Needs Resubmitting | ||
Sam Spilsbury | Approve | ||
Review via email: mp+132506@code.launchpad.net |
Commit message
Resizeinfo Plugin:
Simplified void InfoLayer:
Using the already defined constants RESIZE_POPUP_HEIGHT and RESIZE_POPUP_WIDTH directly in the following calculations instead of height and width (like done in void InfoScreen:
Description of the change
As requested by Daniel, I am separating the fixes for the resizeinfo problems.
This branch just changes the variable types of 'height' and 'width' from int to unsigned short.
Unmerged revisions
- 3448. By MC Return
-
Simplified void InfoLayer:
:renderBackgrou nd () by removing the creation and assignment of the variables int height and width totally and instead using the already defined constants RESIZE_POPUP_HEIGHT and RESIZE_POPUP_WIDTH directly in the following calculations (like done in void InfoScreen: :damagePaintReg ion () already) - 3447. By MC Return
-
Changed variable type of the variables 'height' and 'width' from int to unsigned short
Rejected unless there's a good reason for this.
Not just because "int" is short and sweet, but "int" is much more efficient for the compiler and CPU to handle than down-casting computation to an unsigned short (which is /usually/ 16-bit).