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 436:e8c461d2545e
prev424:421d68e78c46
next439:f0c7928c5914
author nkeynes
date Thu Oct 11 08:20:38 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Remove intermediate window and adjust size accordingly
file annotate diff log raw
1.1 --- a/src/drivers/video_x11.c Sun Oct 07 05:42:25 2007 +0000
1.2 +++ b/src/drivers/video_x11.c Thu Oct 11 08:20:38 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: video_x11.c,v 1.15 2007-10-07 05:42:25 nkeynes Exp $
1.6 + * $Id: video_x11.c,v 1.16 2007-10-11 08:20:38 nkeynes Exp $
1.7 *
1.8 * Shared functions for all X11-based display drivers.
1.9 *
1.10 @@ -119,6 +119,7 @@
1.11 * means we have to jump through the following hoops to create a
1.12 * child window with the appropriate settings.
1.13 */
1.14 +#if 0
1.15 win_attrs.event_mask = 0;
1.16 win_attrs.colormap = XCreateColormap( video_x11_display,
1.17 RootWindowOfScreen(video_x11_screen),
1.18 @@ -137,9 +138,9 @@
1.19 return FALSE;
1.20 }
1.21 XMapRaised( video_x11_display, glx_window );
1.22 -
1.23 +#endif
1.24 /* And finally set the window to be the active drawing area */
1.25 - if( glXMakeCurrent( video_x11_display, glx_window, glx_context ) == False ) {
1.26 + if( glXMakeCurrent( video_x11_display, video_x11_window, glx_context ) == False ) {
1.27 /* Ok you have _GOT_ to be kidding me */
1.28 ERROR( "Unable to prepare GLX window for drawing" );
1.29 XDestroyWindow( video_x11_display, glx_window );
.