Merge lp:~fboucault/unity-2d/blueish_images into lp:~unity-2d-team/unity-2d/maverick-old

Proposed by Florian Boucault
Status: Merged
Approved by: Ricardo Salveti
Approved revision: 369
Merged at revision: 370
Proposed branch: lp:~fboucault/unity-2d/blueish_images
Merge into: lp:~unity-2d-team/unity-2d/maverick-old
Diff against target: 43 lines (+8/-8)
2 files modified
places/app/places.cpp (+4/-4)
spread/app/spread.cpp (+4/-4)
To merge this branch: bzr merge lp:~fboucault/unity-2d/blueish_images
Reviewer Review Type Date Requested Status
Ricardo Salveti (community) code functional Approve
unity-2d-team Pending
Review via email: mp+46565@code.launchpad.net

Description of the change

[dash & spread] Do not call QApplication::setColorSpec(QApplication::ManyColor) thus fixing wrong window colors (blueish) in spread.

To post a comment you must log in.
369. By Florian Boucault

Synchronised comment in places.cpp with spread.cpp.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Minor changes and work as expected.

Tested on Efika I'm no longer getting blueish pixmaps when using spread.

review: Approve (code functional)
Revision history for this message
Florian Boucault (fboucault) wrote :

Are packaging bits ok here?

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

It's also broken, but not something introduced by this merge request.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'places/app/places.cpp'
2--- places/app/places.cpp 2010-12-24 11:02:49 +0000
3+++ places/app/places.cpp 2011-01-18 03:52:13 +0000
4@@ -114,13 +114,13 @@
5 {
6 /* Forcing graphics system to 'raster' instead of the default 'native'
7 which on X11 is 'XRender'.
8- 'XRender' defaults to using a TrueColor visual. We mimick that behaviour
9- with 'raster' by calling QApplication::setColorSpec.
10+ 'XRender' defaults to using a TrueColor visual. We do _not_ mimick that
11+ behaviour with 'raster' by calling QApplication::setColorSpec because
12+ of a bug where some pixmaps become blueish:
13
14- Reference: https://bugs.launchpad.net/upicek/+bug/674484
15+ https://bugs.launchpad.net/unity-2d/+bug/689877
16 */
17 QApplication::setGraphicsSystem("raster");
18- QApplication::setColorSpec(QApplication::ManyColor);
19 QApplication application(argc, argv);
20
21 DashDeclarativeView view;
22
23=== modified file 'spread/app/spread.cpp'
24--- spread/app/spread.cpp 2010-12-21 16:19:08 +0000
25+++ spread/app/spread.cpp 2011-01-18 03:52:13 +0000
26@@ -37,13 +37,13 @@
27
28 /* Forcing graphics system to 'raster' instead of the default 'native'
29 which on X11 is 'XRender'.
30- 'XRender' defaults to using a TrueColor visual. We mimick that behaviour
31- with 'raster' by calling QApplication::setColorSpec.
32+ 'XRender' defaults to using a TrueColor visual. We do _not_ mimick that
33+ behaviour with 'raster' by calling QApplication::setColorSpec because
34+ of a bug where some pixmaps become blueish:
35
36- Reference: https://bugs.launchpad.net/upicek/+bug/674484
37+ https://bugs.launchpad.net/unity-2d/+bug/689877
38 */
39 QApplication::setGraphicsSystem("raster");
40- QApplication::setColorSpec(QApplication::ManyColor);
41 QApplication application(argc, argv);
42
43 SpreadView view;

Subscribers

People subscribed via source and target branches