Move screen initialization to gdkscreen-quartz.c

This commit is contained in:
Kristian Rietveld 2009-10-07 18:54:47 +02:00
parent d3e6cffff7
commit ca20b04b58
3 changed files with 11 additions and 2 deletions

View File

@ -57,8 +57,7 @@ gdk_display_open (const gchar *display_name)
gdk_screen_set_resolution (_gdk_screen, 72.0 * [nsscreen userSpaceScaleFactor]);
_gdk_visual_init ();
gdk_screen_set_default_colormap (_gdk_screen,
gdk_screen_get_system_colormap (_gdk_screen));
_gdk_quartz_screen_init ();
_gdk_windowing_window_init ();
_gdk_events_init ();

View File

@ -152,6 +152,9 @@ void _gdk_quartz_window_debug_highlight (GdkWindow *window,
void _gdk_quartz_window_set_needs_display_in_rect (GdkWindow *window,
GdkRectangle *rect);
/* Screen */
void _gdk_quartz_screen_init (void);
/* Events */
typedef enum {
GDK_QUARTZ_EVENT_SUBTYPE_EVENTLOOP

View File

@ -24,6 +24,13 @@
static GdkColormap *default_colormap = NULL;
void
_gdk_quartz_screen_init (void)
{
gdk_screen_set_default_colormap (_gdk_screen,
gdk_screen_get_system_colormap (_gdk_screen));
}
GdkDisplay *
gdk_screen_get_display (GdkScreen *screen)
{