From 13347b53769d20afc50b77930abffc0d571886c6 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 22 Dec 2001 00:28:49 +0000 Subject: working with 0.9.6 too (0.9.6 is coming with debian woody) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3652 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_directfb.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libvo/vo_directfb.c') diff --git a/libvo/vo_directfb.c b/libvo/vo_directfb.c index ccc442e5b1..6e495c41bd 100644 --- a/libvo/vo_directfb.c +++ b/libvo/vo_directfb.c @@ -264,8 +264,13 @@ static uint32_t preinit() 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)); -- cgit v1.2.3