mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
Move screen initialization to gdkscreen-quartz.c
This commit is contained in:
parent
d3e6cffff7
commit
ca20b04b58
@ -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 ();
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user