projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73b8212
)
rendernodepaintable: ceil() bounds for intrinsic size
author
Timm Bäder
<mail@baedert.org>
Fri, 3 Jan 2020 16:07:39 +0000
(17:07 +0100)
committer
Timm Bäder
<mail@baedert.org>
Tue, 7 Jan 2020 16:27:19 +0000
(17:27 +0100)
Otherweise we floor() implicitly when casting to int, resulting in
slight scaling later.
gtk/gtkrendernodepaintable.c
patch
|
blob
|
history
diff --git
a/gtk/gtkrendernodepaintable.c
b/gtk/gtkrendernodepaintable.c
index 2a85de2aad8bb389242d9612e498e3c9ea24a1be..a7771872477c948f7cc7805b2e4ce7a8afafbbdc 100644
(file)
--- 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