[gtk+] Fix compiler warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix compiler warnings
- Date: Sat, 21 Oct 2017 13:18:25 +0000 (UTC)
commit 9e78fbaac448e3211eb460c8c6febdd773c820a4
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 21 15:17:36 2017 +0200
Fix compiler warnings
I overlooked these when I recently did the render node api changes.
gsk/gskvulkanrenderpass.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gsk/gskvulkanrenderpass.c b/gsk/gskvulkanrenderpass.c
index 6b83e8a..029c99e 100644
--- a/gsk/gskvulkanrenderpass.c
+++ b/gsk/gskvulkanrenderpass.c
@@ -909,7 +909,7 @@ gsk_vulkan_render_pass_upload (GskVulkanRenderPass *self,
{
cairo_surface_t *surface;
- surface = gsk_cairo_node_peek_surface (op->render.node);
+ surface = (cairo_surface_t *)gsk_cairo_node_peek_surface (op->render.node);
op->render.source = gsk_vulkan_image_new_from_data (uploader,
cairo_image_surface_get_data (surface),
cairo_image_surface_get_width (surface),
@@ -1224,8 +1224,8 @@ gsk_vulkan_render_pass_collect_vertex_data (GskVulkanRenderPass *self,
data + n_bytes + offset,
GSK_VULKAN_RENDERER
(gsk_vulkan_render_get_renderer (render)),
&op->text.node->bounds,
- gsk_text_node_peek_font (op->text.node),
- gsk_text_node_peek_glyphs (op->text.node),
+ (PangoFont *)gsk_text_node_peek_font
(op->text.node),
+ (PangoGlyphString *)gsk_text_node_peek_glyphs
(op->text.node),
gsk_text_node_peek_color (op->text.node),
gsk_text_node_get_x (op->text.node),
gsk_text_node_get_y (op->text.node),
@@ -1242,8 +1242,8 @@ gsk_vulkan_render_pass_collect_vertex_data (GskVulkanRenderPass *self,
data + n_bytes + offset,
GSK_VULKAN_RENDERER
(gsk_vulkan_render_get_renderer (render)),
&op->text.node->bounds,
- gsk_text_node_peek_font (op->text.node),
- gsk_text_node_peek_glyphs (op->text.node),
+ (PangoFont *)gsk_text_node_peek_font
(op->text.node),
+ (PangoGlyphString
*)gsk_text_node_peek_glyphs (op->text.node),
gsk_text_node_get_x (op->text.node),
gsk_text_node_get_y (op->text.node),
op->text.start_glyph,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]