1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/multimedia/fxtv/files/patch-xutil.c
MIHIRA Sanpei Yoshiro 991b898e72 Re-add multimedia/fxtv and mplex
- update Mastersite
 - take maintainership from ports@FreeBSD.org.

Feature safe:	yes
2011-11-27 11:56:22 +00:00

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);