summaryrefslogtreecommitdiffstats
path: root/bsp/meta-rcar/meta-rcar-gen3-adas/recipes-graphics/wayland/weston-5.0.0/0006-Add-widget_set_surface_allocation-func.patch
diff options
context:
space:
mode:
authorToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp>2020-03-30 09:24:26 +0900
committerToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp>2020-03-30 09:24:26 +0900
commit5b80bfd7bffd4c20d80b7c70a7130529e9a755dd (patch)
treeb4bb18dcd1487dbf1ea8127e5671b7bb2eded033 /bsp/meta-rcar/meta-rcar-gen3-adas/recipes-graphics/wayland/weston-5.0.0/0006-Add-widget_set_surface_allocation-func.patch
parent706ad73eb02caf8532deaf5d38995bd258725cb8 (diff)
agl-basesystem
Diffstat (limited to 'bsp/meta-rcar/meta-rcar-gen3-adas/recipes-graphics/wayland/weston-5.0.0/0006-Add-widget_set_surface_allocation-func.patch')
-rw-r--r--bsp/meta-rcar/meta-rcar-gen3-adas/recipes-graphics/wayland/weston-5.0.0/0006-Add-widget_set_surface_allocation-func.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/bsp/meta-rcar/meta-rcar-gen3-adas/recipes-graphics/wayland/weston-5.0.0/0006-Add-widget_set_surface_allocation-func.patch b/bsp/meta-rcar/meta-rcar-gen3-adas/recipes-graphics/wayland/weston-5.0.0/0006-Add-widget_set_surface_allocation-func.patch
new file mode 100644
index 00000000..21f68ce5
--- /dev/null
+++ b/bsp/meta-rcar/meta-rcar-gen3-adas/recipes-graphics/wayland/weston-5.0.0/0006-Add-widget_set_surface_allocation-func.patch
@@ -0,0 +1,50 @@
+From a74be0a8f1b71ae24e43e337d44f215d33fe012c Mon Sep 17 00:00:00 2001
+From: Grigory Kletsko <grigory.kletsko@cogentembedded.com>
+Date: Tue, 13 Dec 2016 00:43:11 +0300
+Subject: [PATCH 6/7] Add widget_set_surface_allocation func
+
+---
+ clients/toytoolkit.h | 3 +++
+ clients/window.c | 12 ++++++++++++
+ 2 files changed, 15 insertions(+)
+
+diff --git a/clients/toytoolkit.h b/clients/toytoolkit.h
+index a77eda3..0f6145d 100644
+--- a/clients/toytoolkit.h
++++ b/clients/toytoolkit.h
+@@ -543,6 +543,9 @@ void
+ widget_set_allocation(struct widget *widget,
+ int32_t x, int32_t y, int32_t width, int32_t height);
+ void
++widget_set_surface_allocation(struct widget *widget,
++ int32_t x, int32_t y, int32_t width, int32_t height);
++void
+ widget_set_size(struct widget *widget, int32_t width, int32_t height);
+ void
+ widget_set_transparent(struct widget *widget, int transparent);
+diff --git a/clients/window.c b/clients/window.c
+index 9cd0e8e..d0e2ece 100644
+--- a/clients/window.c
++++ b/clients/window.c
+@@ -1744,6 +1744,18 @@ widget_set_allocation(struct widget *widget,
+ }
+
+ void
++widget_set_surface_allocation(struct widget *widget,
++ int32_t x, int32_t y, int32_t width, int32_t height)
++{
++ if (widget->surface) {
++ widget->surface->allocation.x = x;
++ widget->surface->allocation.y = y;
++ widget->surface->allocation.width = width;
++ widget->surface->allocation.height = height;
++ }
++}
++
++void
+ widget_set_transparent(struct widget *widget, int transparent)
+ {
+ widget->opaque = !transparent;
+--
+2.7.4
+