projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2278004
)
rendernode: Don't use gdk_texture_download_surface
author
Timm Bäder
<mail@baedert.org>
Mon, 19 Mar 2018 08:20:33 +0000
(09:20 +0100)
committer
Timm Bäder
<mail@baedert.org>
Tue, 20 Mar 2018 08:40:10 +0000
(09:40 +0100)
It can't handle the texture sizes we'd like to support
gsk/gskrendernodeimpl.c
patch
|
blob
|
history
diff --git
a/gsk/gskrendernodeimpl.c
b/gsk/gskrendernodeimpl.c
index a34d7c05ab9c087a93e100add7aeca409375ad0a..5faf5ed9507566769ac047de7300af8f281aaec4 100644
(file)
--- a/
gsk/gskrendernodeimpl.c
+++ b/
gsk/gskrendernodeimpl.c
@@
-702,7
+702,7
@@
gsk_texture_node_serialize (GskRenderNode *node)
gsize stride;
stride = 4 * self->texture->width;
- data = g_malloc (sizeof (guchar) * stride * self->texture->
width
);
+ data = g_malloc (sizeof (guchar) * stride * self->texture->
height
);
gdk_texture_download (self->texture, data, stride);
result = g_variant_new ("(dddduu@au)",