broadway: Ensure broadway request members are 32bit aligned

This commit is contained in:
Alexander Larsson 2013-03-18 16:36:27 +01:00
parent 953253f685
commit 99cc5758b1
2 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@ typedef struct {
typedef struct {
BroadwayRequestBase base;
guint32 id;
char name[34];
char name[36];
guint32 width;
guint32 height;
} BroadwayRequestUpdate;

View File

@ -550,7 +550,7 @@ create_random_shm (char *name)
static const cairo_user_data_key_t gdk_broadway_shm_cairo_key;
typedef struct {
char name[34];
char name[36];
void *data;
gsize data_size;
} BroadwayShmSurfaceData;
@ -610,7 +610,7 @@ _gdk_broadway_server_window_update (GdkBroadwayServer *server,
g_assert (data != NULL);
msg.id = id;
memcpy (msg.name, data->name, 34);
memcpy (msg.name, data->name, 36);
msg.width = cairo_image_surface_get_width (surface);
msg.height = cairo_image_surface_get_height (surface);