Search
lxdream.org :: lxdream/src/drivers/video_x11.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_x11.c
changeset 424:421d68e78c46
prev405:570d93abb5b7
next436:e8c461d2545e
author nkeynes
date Sun Oct 07 05:42:25 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/drivers/video_x11.c Fri Sep 28 07:24:14 2007 +0000
1.2 +++ b/src/drivers/video_x11.c Sun Oct 07 05:42:25 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: video_x11.c,v 1.14 2007-09-28 07:24:14 nkeynes Exp $
1.6 + * $Id: video_x11.c,v 1.15 2007-10-07 05:42:25 nkeynes Exp $
1.7 *
1.8 * Shared functions for all X11-based display drivers.
1.9 *
1.10 @@ -40,6 +40,8 @@
1.11 static Window glx_window;
1.12 static XSetWindowAttributes win_attrs;
1.13
1.14 +gboolean video_glx_create_window( int width, int height );
1.15 +
1.16 gboolean video_glx_init( Display *display, Screen *screen, Window window,
1.17 int width, int height, display_driver_t driver )
1.18 {
1.19 @@ -76,7 +78,6 @@
1.20 gboolean video_glx_create_window( int width, int height )
1.21 {
1.22 int major, minor;
1.23 - const char *glxExts, *glxServer;
1.24 int visual_attrs[] = { GLX_RGBA, GLX_RED_SIZE, 4,
1.25 GLX_GREEN_SIZE, 4,
1.26 GLX_BLUE_SIZE, 4,
1.27 @@ -176,6 +177,7 @@
1.28 lists = glGenLists(96);
1.29 glXUseXFont(font->fid, 32, 96, lists);
1.30 XFreeFont(video_x11_display, font);
1.31 + return lists;
1.32 }
1.33
1.34
.