mirror of https://github.com/mpv-player/mpv
small change
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@477 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f7eb664335
commit
22ad1b8599
|
@ -410,7 +410,8 @@ static fb_mode_t *find_best_mode(int xres, int yres, range_t *hfreq,
|
|||
|
||||
static void set_bpp(struct fb_var_screeninfo *p, int bpp)
|
||||
{
|
||||
p->bits_per_pixel = (bpp == 15) ? 16 : bpp;
|
||||
/* p->bits_per_pixel = (bpp == 15) ? 16 : bpp; */
|
||||
p->bits_per_pixel = (bpp + 1) & ~1;
|
||||
p->red.msb_right = p->green.msb_right = p->blue.msb_right = 0;
|
||||
switch (bpp) {
|
||||
case 32:
|
||||
|
|
Loading…
Reference in New Issue