aboutsummaryrefslogtreecommitdiffstats
path: root/src/wayland.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-26 13:20:37 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commitf6c51b7d753249f145b5d4159808e6db7dadddaf (patch)
tree783b9e61eaf3dd92a1e74e72a66c779348ac2fd4 /src/wayland.cpp
parent0f8562c512b461f24ef2ea9e61bdc20a1ef602f0 (diff)
wayland: cast wl_fixed_to_double() return to float for our interface
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/wayland.cpp')
-rw-r--r--src/wayland.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp
index 950335a..1078a14 100644
--- a/src/wayland.cpp
+++ b/src/wayland.cpp
@@ -267,7 +267,8 @@ void layer_opacity(void *data,
struct ivi_controller_layer *ivi_controller_layer,
wl_fixed_t opacity) {
static_cast<struct layer *>(data)->parent->layer_opacity(
- static_cast<struct layer *>(data)->id, wl_fixed_to_double(opacity));
+ static_cast<struct layer *>(data)->id,
+ float(wl_fixed_to_double(opacity)));
}
void layer_source_rectangle(void *data,
@@ -402,7 +403,8 @@ void surface_opacity(void *data,
struct ivi_controller_surface *ivi_controller_surface,
wl_fixed_t opacity) {
static_cast<struct surface *>(data)->parent->surface_opacity(
- static_cast<struct surface *>(data)->id, wl_fixed_to_double(opacity));
+ static_cast<struct surface *>(data)->id,
+ float(wl_fixed_to_double(opacity)));
}
void surface_source_rectangle(