diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2014-07-17 12:47:34 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2014-07-17 12:47:34 +0000 |
commit | 35e6436e3898639f862412a338938449e379d93e (patch) | |
tree | ce24709dae0dc764f421f4a3d5b0ccd7085668f1 | |
parent | a6f6f7a6329ccdc871149734d5978284a0134689 (diff) | |
download | src-35e6436e3898639f862412a338938449e379d93e.tar.gz src-35e6436e3898639f862412a338938449e379d93e.zip |
Fix embarassing typos I made.
Submitted by: rayddteam
Notes
Notes:
svn path=/head/; revision=268796
-rw-r--r-- | sys/dev/vt/hw/fb/vt_fb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/vt/hw/fb/vt_fb.c b/sys/dev/vt/hw/fb/vt_fb.c index f2196a1b2d2a..b2788a4f50f6 100644 --- a/sys/dev/vt/hw/fb/vt_fb.c +++ b/sys/dev/vt/hw/fb/vt_fb.c @@ -185,17 +185,17 @@ vt_fb_blank(struct vt_device *vd, term_color_t color) 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_color_t color) } 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? */ |