diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-22 00:28:49 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-22 00:28:49 +0000 |
commit | 13347b53769d20afc50b77930abffc0d571886c6 (patch) | |
tree | 297a5b529505e351c0ea59079ddcc91cd8995121 /libvo/vo_directfb.c | |
parent | b14af3842135db4b9cdec0532a9f118617be599a (diff) |
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
Diffstat (limited to 'libvo/vo_directfb.c')
-rw-r--r-- | libvo/vo_directfb.c | 9 |
1 files changed, 7 insertions, 2 deletions
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)); |