Mercurial > mplayer.hg
comparison libvo/vo_fbdev.c @ 663:121cb2047c08
nothing important
author | szabii |
---|---|
date | Sun, 29 Apr 2001 21:16:21 +0000 |
parents | 52572e691946 |
children | c3fad5e1698e |
comparison
equal
deleted
inserted
replaced
662:4a959b73d51e | 663:121cb2047c08 |
---|---|
675 printf(FBDEV "Can't get VSCREENINFO: %s\n", strerror(errno)); | 675 printf(FBDEV "Can't get VSCREENINFO: %s\n", strerror(errno)); |
676 goto err_out_fd; | 676 goto err_out_fd; |
677 } | 677 } |
678 fb_orig_vinfo = fb_vinfo; | 678 fb_orig_vinfo = fb_vinfo; |
679 | 679 |
680 /* | 680 fb_bpp = fb_vinfo.bits_per_pixel; |
681 fb_bpp = (fb_vinfo.bits_per_pixel == 32) ? 32 : | 681 |
682 (fb_vinfo.red.length + fb_vinfo.green.length + | 682 /* 16 and 15 bpp is reported 16 bpp */ |
683 fb_vinfo.blue.length); | 683 if (fb_bpp == 16) |
684 */ | 684 fb_bpp = fb_vinfo.red.length + fb_vinfo.green.length + |
685 #warning FIXME | 685 fb_vinfo.blue.length; |
686 /* nemigy kellene bpp-t meghatarozni */ | 686 |
687 fb_bpp = (fb_vinfo.bits_per_pixel == 32) ? 32 : | |
688 (fb_vinfo.red.length + fb_vinfo.red.offset); | |
689 if (vo_dbpp) { | 687 if (vo_dbpp) { |
690 if (vo_dbpp != 15 && vo_dbpp != 16 && vo_dbpp != 24 && | 688 if (vo_dbpp != 15 && vo_dbpp != 16 && vo_dbpp != 24 && |
691 vo_dbpp != 32) { | 689 vo_dbpp != 32) { |
692 printf(FBDEV "can't switch to %d bpp\n", vo_dbpp); | 690 printf(FBDEV "can't switch to %d bpp\n", vo_dbpp); |
693 goto err_out; | 691 goto err_out; |