bpp selection fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@660 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
szabii 2001-04-28 22:05:17 +00:00
parent 4d31392cd6
commit 8f8e390a65
1 changed files with 6 additions and 0 deletions

View File

@ -677,9 +677,15 @@ static int fb_preinit(void)
}
fb_orig_vinfo = fb_vinfo;
/*
fb_bpp = (fb_vinfo.bits_per_pixel == 32) ? 32 :
(fb_vinfo.red.length + fb_vinfo.green.length +
fb_vinfo.blue.length);
*/
#warning FIXME
/* nemigy kellene bpp-t meghatarozni */
fb_bpp = (fb_vinfo.bits_per_pixel == 32) ? 32 :
(fb_vinfo.red.length + fb_vinfo.red.offset);
if (vo_dbpp) {
if (vo_dbpp != 15 && vo_dbpp != 16 && vo_dbpp != 24 &&
vo_dbpp != 32) {