changeset 3651:8148193fee93

working with 0.9.6 too (0.9.6 is coming with debian woody)
author alex
date Sat, 22 Dec 2001 00:28:49 +0000
parents 37e6bfd90ad7
children 65fd971932dc
files libvo/vo_directfb.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_directfb.c	Fri Dec 21 23:41:16 2001 +0000
+++ b/libvo/vo_directfb.c	Sat Dec 22 00:28:49 2001 +0000
@@ -264,8 +264,13 @@
 		directfb_micro_version);
 	}
 
-        if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER"))) fb_dev_name = "/dev/fb0";
-        DFBCHECK (DirectFBSetOption ("fbdev",fb_dev_name));
+	if ((directfb_major_version >= 0) &&
+	    (directfb_minor_version >= 9) &&
+	    (directfb_micro_version >= 7))
+	{
+    	    if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER"))) fb_dev_name = "/dev/fb0";
+    	    DFBCHECK (DirectFBSetOption ("fbdev",fb_dev_name));
+	}
 
 //	uncomment this if you do not wish to create a new vt for DirectFB
 //       DFBCHECK (DirectFBSetOption ("no-vt-switch",fb_dev_name));