Mercurial > molko
comparison librpg/rpg/battle-state-closing.c @ 227:befa2e855d3b
core: reinterface the alloc module
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 19 Nov 2020 10:48:46 +0100 |
parents | c0e0d4accae8 |
children |
comparison
equal
deleted
inserted
replaced
226:dd7c8d4321a3 | 227:befa2e855d3b |
---|---|
86 { | 86 { |
87 assert(bt); | 87 assert(bt); |
88 | 88 |
89 struct closing *closing; | 89 struct closing *closing; |
90 | 90 |
91 if (!(closing = alloc_zero(1, sizeof (*closing))) || | 91 if (!(closing = alloc_new0(sizeof (*closing))) || |
92 !texture_new(&closing->texture, window.w, window.h)) | 92 !texture_new(&closing->texture, window.w, window.h)) |
93 panic(); | 93 panic(); |
94 | 94 |
95 PAINTER_BEGIN(&closing->texture); | 95 PAINTER_BEGIN(&closing->texture); |
96 texture_set_blend_mode(&closing->texture, TEXTURE_BLEND_BLEND); | 96 texture_set_blend_mode(&closing->texture, TEXTURE_BLEND_BLEND); |