Re: [TRIVIAL PATCH] FBDEV: Small impact patch for fbdev

2 messages, 2 authors, 2002-12-11 · open the first message on its own page

Re: [TRIVIAL PATCH] FBDEV: Small impact patch for fbdev

From: Petr Vandrovec <hidden>
Date: 2002-12-11 12:15:23

On 10 Dec 02 at 21:59, James Simmons wrote:
Fixed. Actually I used the following code.

int fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
{
        int xoffset = var->xoffset;
        int yoffset = var->yoffset;
        int err;

        if (xoffset < 0 || yoffset < 0 || info->fbops->fb_pan_display ||
I'm probably missing something important, but do not you want
                                           !info->fbops->fb_pan_display
instead?
                                                            Petr
                                                                                                       
            xoffset + info->var.xres > info->var.xres_virtual ||
            yoffset + info->var.yres > info->var.yres_virtual)
                return -EINVAL;
        if ((err = info->fbops->fb_pan_display(var, info)))
                return err;
        info->var.xoffset = var->xoffset;
        info->var.yoffset = var->yoffset;
        if (var->vmode & FB_VMODE_YWRAP)

Re: [TRIVIAL PATCH] FBDEV: Small impact patch for fbdev

From: James Simmons <hidden>
Date: 2002-12-11 13:38:28

quoted
int fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
{
        int xoffset = var->xoffset;
        int yoffset = var->yoffset;
        int err;

        if (xoffset < 0 || yoffset < 0 || info->fbops->fb_pan_display ||
I'm probably missing something important, but do not you want
                                           !info->fbops->fb_pan_display
instead?
Oops. Typo to the screen. That wasn't commited :-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help