mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
991b898e72
- update Mastersite - take maintainership from ports@FreeBSD.org. Feature safe: yes
16 lines
683 B
C
16 lines
683 B
C
--- ./xutil.c.orig Fri Nov 5 09:38:54 1999
|
|
+++ ./xutil.c Tue Oct 9 03:41:54 2007
|
|
@@ -1500,8 +1500,10 @@
|
|
/**********************************************************************/
|
|
|
|
vinfo_pref.screen = screen;
|
|
- visual = XGetVisualInfo( display, VisualScreenMask, &vinfo_pref,
|
|
- &num_visuals );
|
|
+ vinfo_pref.depth = DefaultDepth( display, screen );
|
|
+ visual = XGetVisualInfo( display,
|
|
+ VisualScreenMask | VisualDepthMask,
|
|
+ &vinfo_pref, &num_visuals );
|
|
if ( num_visuals == 0 ) {
|
|
fprintf( stderr, "XGetVisualInfo() says no visuals available!\n" );
|
|
exit(1);
|