[gtk/wip/chergert/glproto] use floorf



commit f45279ddbf999bb840b16236265f394cc7d1054e
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 3 19:00:50 2021 -0800

    use floorf

 gsk/next/gskglrenderjob.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 0959e0a6fb..0e5dbabe23 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -2623,8 +2623,8 @@ gsk_gl_render_job_visit_text_node (GskGLRenderJob *job,
       tx2 = glyph->entry.area.x2;
       ty2 = glyph->entry.area.y2;
 
-      glyph_x = floor (x + cx + 0.125) + glyph->ink_rect.x;
-      glyph_y = floor (y + cy + 0.125) + glyph->ink_rect.y;
+      glyph_x = floorf (x + cx + 0.125) + glyph->ink_rect.x;
+      glyph_y = floorf (y + cy + 0.125) + glyph->ink_rect.y;
       glyph_x2 = glyph_x + glyph->ink_rect.width;
       glyph_y2 = glyph_y + glyph->ink_rect.height;
 


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