mirror of
https://github.com/labwc/labwc.git
synced 2025-11-09 13:30:01 -05:00
common: Add znew/znew_n() macros
This commit is contained in:
parent
da57483961
commit
a54d378e6c
26 changed files with 47 additions and 47 deletions
|
|
@ -38,8 +38,7 @@ parse_set_color(float *rgba)
|
|||
static void
|
||||
process_bytes(struct pixmap *pixmap, struct token *tokens)
|
||||
{
|
||||
pixmap->data = (uint32_t *)xzalloc(
|
||||
pixmap->width * pixmap->height * sizeof(uint32_t));
|
||||
pixmap->data = znew_n(uint32_t, pixmap->width * pixmap->height);
|
||||
struct token *t = tokens;
|
||||
for (int row = 0; row < pixmap->height; row++) {
|
||||
int byte = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue