From 511c434b959be96c992e59f4a2748ac251d5c72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Tue, 20 Oct 2009 10:31:34 +0200 Subject: Make the raster graphics system default on Mac. The plan is to make this default for Cocoa on Qt 4.7. Switching it over now will give us time to find regressions. Use "-graphicssystem native" to escape back to CoreGraphics. --- src/gui/kernel/qapplication.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 6f6d706..ce5796b 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -936,6 +936,14 @@ void QApplicationPrivate::initialize() // Set up which span functions should be used in raster engine... qInitDrawhelperAsm(); +#ifdef QT_MAC_USE_COCOA + // Use the rater graphics system by default on Cocoa, override with + // -graphicssystem raster + if (graphics_system_name.isEmpty()) { + graphics_system_name = QLatin1String("raster"); + } +#endif + #if !defined(Q_WS_X11) && !defined(Q_WS_QWS) // initialize the graphics system - on X11 this is initialized inside // qt_init() in qapplication_x11.cpp because of several reasons. -- cgit v0.12