Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2014 06:04:50 GMT
From:      seiya@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r270761 - soc2014/seiya/bootsplash/sys/dev/fb
Message-ID:  <201407120604.s6C64ont019953@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: seiya
Date: Sat Jul 12 06:04:49 2014
New Revision: 270761
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=270761

Log:
  fix a bug

Modified:
  soc2014/seiya/bootsplash/sys/dev/fb/bmp.c

Modified: soc2014/seiya/bootsplash/sys/dev/fb/bmp.c
==============================================================================
--- soc2014/seiya/bootsplash/sys/dev/fb/bmp.c	Sat Jul 12 05:59:19 2014	(r270760)
+++ soc2014/seiya/bootsplash/sys/dev/fb/bmp.c	Sat Jul 12 06:04:49 2014	(r270761)
@@ -467,8 +467,7 @@
 		 * two colour indexes to alternate between for the run
 		 */
 		if (*info->index) {
-			count = ((width - x - sx - 1) > *info->index)? *info->index :
-									(width - x - sx - 1);
+			count = min(sx + width - x, *info->index);
 			bmp_draw_line(info, y, x, count, *(info->index+1));
 			x += count;
 			info->index += 2;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407120604.s6C64ont019953>