[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] pfvb: Add offset in resize event.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1206540685 0 # Node ID bfc04013563354a26fb9bb7f00ffb4587c14703b # Parent 542209a3e7e967430c89c99434d9a230420daad5 pfvb: Add offset in resize event. Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx> --- drivers/xen/fbfront/xenfb.c | 3 +++ include/xen/interface/io/fbif.h | 1 + 2 files changed, 4 insertions(+) diff -r 542209a3e7e9 -r bfc040135633 drivers/xen/fbfront/xenfb.c --- a/drivers/xen/fbfront/xenfb.c Wed Mar 26 11:08:08 2008 +0000 +++ b/drivers/xen/fbfront/xenfb.c Wed Mar 26 14:11:25 2008 +0000 @@ -171,6 +171,7 @@ static void xenfb_do_update(struct xenfb { union xenfb_out_event event; + memset(&event, 0, sizeof(event)); event.type = XENFB_TYPE_UPDATE; event.update.x = x; event.update.y = y; @@ -185,6 +186,7 @@ static void xenfb_do_resize(struct xenfb { union xenfb_out_event event; + memset(&event, 0, sizeof(event)); event.resize = info->resize; /* caller ensures !xenfb_queue_full() */ @@ -504,6 +506,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 542209a3e7e9 -r bfc040135633 include/xen/interface/io/fbif.h --- a/include/xen/interface/io/fbif.h Wed Mar 26 11:08:08 2008 +0000 +++ b/include/xen/interface/io/fbif.h Wed Mar 26 14:11:25 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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |