Coding style fix.

2008-02-14  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkdisplay-quartz.c: (gdk_display_open): Coding style
	fix.

svn path=/trunk/; revision=19565
This commit is contained in:
Richard Hult 2008-02-14 15:51:13 +00:00 committed by Richard Hult
parent ddf4a07053
commit 5737e8f78f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-02-14 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkdisplay-quartz.c: (gdk_display_open): Coding style
fix.
2008-02-14 Johan Dahlin <johan@gnome.org> 2008-02-14 Johan Dahlin <johan@gnome.org>
* gdk/gdktestutils.h * gdk/gdktestutils.h

View File

@ -42,6 +42,8 @@ _gdk_windowing_set_default_display (GdkDisplay *display)
GdkDisplay * GdkDisplay *
gdk_display_open (const gchar *display_name) gdk_display_open (const gchar *display_name)
{ {
NSScreen *nsscreen;
if (_gdk_display != NULL) if (_gdk_display != NULL)
return NULL; return NULL;
@ -51,7 +53,6 @@ gdk_display_open (const gchar *display_name)
_gdk_display = g_object_new (GDK_TYPE_DISPLAY, NULL); _gdk_display = g_object_new (GDK_TYPE_DISPLAY, NULL);
_gdk_screen = g_object_new (GDK_TYPE_SCREEN, NULL); _gdk_screen = g_object_new (GDK_TYPE_SCREEN, NULL);
NSScreen *nsscreen;
nsscreen = [[NSScreen screens] objectAtIndex:0]; nsscreen = [[NSScreen screens] objectAtIndex:0];
gdk_screen_set_resolution (_gdk_screen, 72.0 * [nsscreen userSpaceScaleFactor]); gdk_screen_set_resolution (_gdk_screen, 72.0 * [nsscreen userSpaceScaleFactor]);