[gtk/wip/baedert/gl-rework: 6/8] rendernodepaintable: ceil() bounds for intrinsic size
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 6/8] rendernodepaintable: ceil() bounds for intrinsic size
- Date: Mon, 6 Jan 2020 13:54:59 +0000 (UTC)
commit a2d807a5fdb8bdf24b35e25d8da8b3be6a9ac4a1
Author: Timm Bäder <mail baedert org>
Date: Fri Jan 3 17:07:39 2020 +0100
rendernodepaintable: ceil() bounds for intrinsic size
Otherweise we floor() implicitly when casting to int, resulting in
slight scaling later.
gtk/gtkrendernodepaintable.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrendernodepaintable.c b/gtk/gtkrendernodepaintable.c
index 2a85de2aad..a777187247 100644
--- a/gtk/gtkrendernodepaintable.c
+++ b/gtk/gtkrendernodepaintable.c
@@ -76,7 +76,7 @@ gtk_render_node_paintable_paintable_get_intrinsic_width (GdkPaintable *paintable
{
GtkRenderNodePaintable *self = GTK_RENDER_NODE_PAINTABLE (paintable);
- return self->bounds.size.width;
+ return ceilf (self->bounds.size.width);
}
static int
@@ -84,7 +84,7 @@ gtk_render_node_paintable_paintable_get_intrinsic_height (GdkPaintable *paintabl
{
GtkRenderNodePaintable *self = GTK_RENDER_NODE_PAINTABLE (paintable);
- return self->bounds.size.height;
+ return ceilf (self->bounds.size.height);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]