1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

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
This commit is contained in:
alex 2001-12-22 00:28:49 +00:00
parent b14af38421
commit 13347b5376

View File

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