WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH 2/2] fbif: Add offset in resize event

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: [PATCH 2/2] fbif: Add offset in resize event
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Date: Wed, 26 Mar 2008 11:10:51 +0000
Delivery-date: Wed, 26 Mar 2008 04:12:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080326110940.GA5636@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
References: <20080326110940.GA5636@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
fbfront: Add offset in resize event

diff -r 1327b9dcc63a drivers/xen/fbfront/xenfb.c
--- a/drivers/xen/fbfront/xenfb.c       Wed Mar 26 09:07:52 2008 +0000
+++ b/drivers/xen/fbfront/xenfb.c       Wed Mar 26 11:08:36 2008 +0000
@@ -504,6 +504,7 @@ static int xenfb_set_par(struct fb_info 
        xenfb_info->resize.height = info->var.yres;
        xenfb_info->resize.stride = info->fix.line_length;
        xenfb_info->resize.depth = info->var.bits_per_pixel;
+       xenfb_info->resize.offset = 0;
        xenfb_info->resize_dpy = 1;
        spin_unlock_irqrestore(&xenfb_info->resize_lock, flags);
        return 0;
diff -r 1327b9dcc63a include/xen/interface/io/fbif.h
--- a/include/xen/interface/io/fbif.h   Wed Mar 26 09:07:52 2008 +0000
+++ b/include/xen/interface/io/fbif.h   Wed Mar 26 11:08:36 2008 +0000
@@ -63,6 +63,7 @@ struct xenfb_resize
     int32_t height;  /* height in pixels */
     int32_t stride;  /* stride in bytes */
     int32_t depth;   /* depth in bits */
+    int32_t offset;  /* offset of the framebuffer in bytes */
 };
 
 #define XENFB_OUT_EVENT_SIZE 40

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel