Alexandre Julliard : gdi32: Use the Mac driver by default.

Alexandre Julliard julliard at winehq.org
Tue Apr 2 13:38:36 CDT 2013


Module: wine
Branch: master
Commit: 2f48b12c575c4e1afc6115a39d60722acda73d7d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2f48b12c575c4e1afc6115a39d60722acda73d7d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Apr  2 12:22:17 2013 +0200

gdi32: Use the Mac driver by default.

---

 dlls/gdi32/driver.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/driver.c b/dlls/gdi32/driver.c
index 70208fb..f625f32 100644
--- a/dlls/gdi32/driver.c
+++ b/dlls/gdi32/driver.c
@@ -61,6 +61,12 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
 };
 static CRITICAL_SECTION driver_section = { &critsect_debug, -1, 0, 0, 0, 0 };
 
+#ifdef __APPLE__
+static const char default_driver[] = "mac,x11";
+#else
+static const char default_driver[] = "x11";
+#endif
+
 /**********************************************************************
  *	     create_driver
  *
@@ -102,7 +108,7 @@ static const struct gdi_dc_funcs *get_display_driver( HMODULE *module_ret )
 
     if (display_driver) goto done;
 
-    strcpy( buffer, "x11" );  /* default value */
+    strcpy( buffer, default_driver );
     /* @@ Wine registry key: HKCU\Software\Wine\Drivers */
     if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Drivers", &hkey ))
     {




More information about the wine-cvs mailing list