[gtk+] Triival cleanup



commit 439e1054c4cce7f33dfdab7510082a10ed97107d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Oct 28 14:38:21 2017 -0400

    Triival cleanup
    
    No need to go to the window, we store a copy of the scale factor
    in the render pass object.

 gsk/gskvulkanrenderpass.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gsk/gskvulkanrenderpass.c b/gsk/gskvulkanrenderpass.c
index 00f79be..37cdf25 100644
--- a/gsk/gskvulkanrenderpass.c
+++ b/gsk/gskvulkanrenderpass.c
@@ -407,7 +407,7 @@ gsk_vulkan_render_pass_add_node (GskVulkanRenderPass           *self,
 
         op.text.start_glyph = 0;
         op.text.texture_index = G_MAXUINT;
-        op.text.scale = gdk_window_get_scale_factor (gsk_renderer_get_window (GSK_RENDERER (renderer)));
+        op.text.scale = self->scale_factor;
 
         for (i = 0, count = 0; i < num_glyphs; i++)
           {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]