changeset 35051:fdd4b7d35537

Simplify a condition.
author reimar
date Sun, 02 Sep 2012 22:06:01 +0000
parents b291f44d864a
children 60e92b725c3d
files libvo/vo_fbdev2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev2.c	Sun Sep 02 21:51:42 2012 +0000
+++ b/libvo/vo_fbdev2.c	Sun Sep 02 22:06:01 2012 +0000
@@ -295,7 +295,7 @@
 {
 	// open the device, etc.
 	if (fb_preinit(0)) return 0;
-	if ((format & IMGFMT_BGR_MASK) == IMGFMT_BGR) {
+	if (IMGFMT_IS_BGR(format)) {
 		int fb_target_bpp = format & 0xff;
 		set_bpp(&fb_vinfo, fb_target_bpp);
 		fb_vinfo.xres_virtual = fb_vinfo.xres;