Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15265
b: refs/heads/master
c: 7ca0b3b
h: refs/heads/master
i:
  15263: a36770f
v: v3
  • Loading branch information
Knut Petersen authored and Linus Torvalds committed Dec 20, 2005
1 parent 9506246 commit 0481230
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d5d74efbeac61c73431e8ef032e97d2d1004ce88
refs/heads/master: 7ca0b3bf695632003a2a0f98b9fc1451b0483346
8 changes: 5 additions & 3 deletions trunk/drivers/video/console/fbcon_ud.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,15 @@ static void ud_cursor(struct vc_data *vc, struct fb_info *info,
int ud_update_start(struct fb_info *info)
{
struct fbcon_ops *ops = info->fbcon_par;
u32 xoffset, yoffset;
int xoffset, yoffset;
u32 vyres = GETVYRES(ops->p->scrollmode, info);
u32 vxres = GETVXRES(ops->p->scrollmode, info);
int err;

xoffset = (vxres - info->var.xres) - ops->var.xoffset;
yoffset = (vyres - info->var.yres) - ops->var.yoffset;
xoffset = vxres - info->var.xres - ops->var.xoffset;
yoffset = vyres - info->var.yres - ops->var.yoffset;
if (yoffset < 0)
yoffset += vyres;
ops->var.xoffset = xoffset;
ops->var.yoffset = yoffset;
err = fb_pan_display(info, &ops->var);
Expand Down

0 comments on commit 0481230

Please sign in to comment.