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
=== modified file 'places/app/places.cpp'
--- places/app/places.cpp 2010-12-24 11:02:49 +0000
+++ places/app/places.cpp 2011-01-18 03:52:13 +0000
@@ -114,13 +114,13 @@
114{114{
115 /* Forcing graphics system to 'raster' instead of the default 'native'115 /* Forcing graphics system to 'raster' instead of the default 'native'
116 which on X11 is 'XRender'.116 which on X11 is 'XRender'.
117 'XRender' defaults to using a TrueColor visual. We mimick that behaviour117 'XRender' defaults to using a TrueColor visual. We do _not_ mimick that
118 with 'raster' by calling QApplication::setColorSpec.118 behaviour with 'raster' by calling QApplication::setColorSpec because
119 of a bug where some pixmaps become blueish:
119120
120 Reference: https://bugs.launchpad.net/upicek/+bug/674484121 https://bugs.launchpad.net/unity-2d/+bug/689877
121 */122 */
122 QApplication::setGraphicsSystem("raster");123 QApplication::setGraphicsSystem("raster");
123 QApplication::setColorSpec(QApplication::ManyColor);
124 QApplication application(argc, argv);124 QApplication application(argc, argv);
125125
126 DashDeclarativeView view;126 DashDeclarativeView view;
127127
=== modified file 'spread/app/spread.cpp'
--- spread/app/spread.cpp 2010-12-21 16:19:08 +0000
+++ spread/app/spread.cpp 2011-01-18 03:52:13 +0000
@@ -37,13 +37,13 @@
3737
38 /* Forcing graphics system to 'raster' instead of the default 'native'38 /* Forcing graphics system to 'raster' instead of the default 'native'
39 which on X11 is 'XRender'.39 which on X11 is 'XRender'.
40 'XRender' defaults to using a TrueColor visual. We mimick that behaviour40 'XRender' defaults to using a TrueColor visual. We do _not_ mimick that
41 with 'raster' by calling QApplication::setColorSpec.41 behaviour with 'raster' by calling QApplication::setColorSpec because
42 of a bug where some pixmaps become blueish:
4243
43 Reference: https://bugs.launchpad.net/upicek/+bug/67448444 https://bugs.launchpad.net/unity-2d/+bug/689877
44 */45 */
45 QApplication::setGraphicsSystem("raster");46 QApplication::setGraphicsSystem("raster");
46 QApplication::setColorSpec(QApplication::ManyColor);
47 QApplication application(argc, argv);47 QApplication application(argc, argv);
4848
49 SpreadView view;49 SpreadView view;

Subscribers

People subscribed via source and target branches