svn commit: r268796 - head/sys/dev/vt/hw/fb

看板FB_svn作者時間11年前 (2014/07/17 21:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
Author: nwhitehorn Date: Thu Jul 17 12:47:34 2014 New Revision: 268796 URL: http://svnweb.freebsd.org/changeset/base/268796 Log: Fix embarassing typos I made. Submitted by: rayddteam Modified: head/sys/dev/vt/hw/fb/vt_fb.c Modified: head/sys/dev/vt/hw/fb/vt_fb.c ============================================================================== --- head/sys/dev/vt/hw/fb/vt_fb.c Thu Jul 17 11:38:37 2014 (r268795) +++ head/sys/dev/vt/hw/fb/vt_fb.c Thu Jul 17 12:47:34 2014 (r268796) @@ -185,17 +185,17 @@ vt_fb_blank(struct vt_device *vd, term_c switch (FBTYPE_GET_BYTESPP(info)) { case 1: - for (h = 0; h < info->fb_stride; h++) + for (h = 0; h < info->fb_height; h++) for (o = 0; o < info->fb_stride; o++) info->wr1(info, h*info->fb_stride + o, c); break; case 2: - for (h = 0; h < info->fb_stride; h++) + for (h = 0; h < info->fb_height; h++) for (o = 0; o < info->fb_stride; o += 2) info->wr2(info, h*info->fb_stride + o, c); break; case 3: - for (h = 0; h < info->fb_stride; h++) + for (h = 0; h < info->fb_height; h++) for (o = 0; o < info->fb_stride; o += 3) { info->wr1(info, h*info->fb_stride + o, (c >> 16) & 0xff); @@ -206,9 +206,9 @@ vt_fb_blank(struct vt_device *vd, term_c } break; case 4: - for (h = 0; h < info->fb_stride; h++) + for (h = 0; h < info->fb_height; h++) for (o = 0; o < info->fb_stride; o += 4) - info->wr4(info, o, c); + info->wr4(info, h*info->fb_stride + o, c); break; default: /* panic? */ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
文章代碼(AID): #1JnyaE6h (FB_svn)