Fix compiler warnings

I overlooked these when I recently did the render node api changes.
This commit is contained in:
Matthias Clasen 2017-10-21 15:17:36 +02:00
parent afea254526
commit 9e78fbaac4

View File

@ -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,