# HG changeset patch # User alex # Date 1008980929 0 # Node ID 8148193fee93491055bed3cd22b3d51e090f43e1 # Parent 37e6bfd90ad74089b35e3287b27698c124771d81 working with 0.9.6 too (0.9.6 is coming with debian woody) diff -r 37e6bfd90ad7 -r 8148193fee93 libvo/vo_directfb.c --- 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));