Changeset a8eed5f in mainline for uspace/lib/gfx/src/bitmap.c


Ignore:
Timestamp:
2020-02-28T16:03:20Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7bb45e3
Parents:
0e6e77f
git-author:
Jiri Svoboda <jiri@…> (2020-02-27 18:02:55)
git-committer:
Jiri Svoboda <jiri@…> (2020-02-28 16:03:20)
Message:

Future-proof gfx_bitmap_params_t with initialization function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfx/src/bitmap.c

    r0e6e77f ra8eed5f  
    3535
    3636#include <gfx/bitmap.h>
     37#include <mem.h>
    3738#include <stdint.h>
    3839#include <stdlib.h>
    3940#include "../private/bitmap.h"
    4041#include "../private/context.h"
     42
     43/** Initialize bitmap parameters structure.
     44 *
     45 * Bitmap parameters structure must always be initialized using this function
     46 * first.
     47 *
     48 * @param params Bitmap parameters structure
     49 */
     50void gfx_bitmap_params_init(gfx_bitmap_params_t *params)
     51{
     52        memset(params, 0, sizeof(gfx_bitmap_params_t));
     53}
    4154
    4255/** Allocate bitmap in a graphics context.
Note: See TracChangeset for help on using the changeset viewer.