Back to index

scribus-ng  1.3.4.dfsg+svn20071115
gdk-pixbuf-xlib.c
Go to the documentation of this file.
00001 /* GdkPixbuf library - Initialization functions
00002  *
00003  * Author: John Harper <john@dcs.warwick.ac.uk>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public
00016  * License along with this library; if not, write to the
00017  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  * Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #include "scconfig.h"
00022 #include <X11/Xlib.h>
00023 /*#include <gdk-pixbuf/gdk-pixbuf-private.h>*/
00024 #include "gdk-pixbuf-xlib-private.h"
00025 
00026 Display *gdk_pixbuf_dpy = NULL;
00027 int gdk_pixbuf_screen = -1;
00028 
00038 void
00039 gdk_pixbuf_xlib_init (Display *display, int screen_num)
00040 {
00041     xlib_rgb_init (display, ScreenOfDisplay (display, screen_num));
00042     gdk_pixbuf_dpy = display;
00043     gdk_pixbuf_screen = screen_num;
00044 }
00045 
00055 void
00056 gdk_pixbuf_xlib_init_with_depth (Display *display,
00057                              int screen_num, int prefDepth)
00058 {
00059     xlib_rgb_init_with_depth (display, ScreenOfDisplay (display, screen_num),
00060                            prefDepth);
00061     gdk_pixbuf_dpy = display;
00062     gdk_pixbuf_screen = screen_num;
00063 }