Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.5.1.27 GFX_malloc Macro
Macro that defines the malloc function for versatility when using Operating Systems.
File
gfx_config_template.h
Syntax
#define GFX_malloc(size) malloc(size)
Description
Macro: GFX_malloc()
This macro definition allows the application to replace the malloc function to an equivalent function implemented in the
operating system used.
When using the library with object layer and without any replacement functions for the malloc function, this macro must be
defined as:
#define GFX_malloc(size) malloc(size)
Remarks
None.
1.5.2 Configuration Examples
This section shows example of configuration combination when using the library.
1.5.2.1 Example 1
Configuration example 1.
Description
• non-blocking is enabled on accelerated functions
• alpha blending
• gradient fills
• palette is not used
• focus on objects that supports it is enabled
• double buffering is disabled
• characters size is 16 bits to support UNICODE characters
• fonts are sourced from two places
• from internal flash
• from external memory
• fonts from RAM is disabled
• font that are anti-aliased is enabled
• font sourced from external memory is allocated 51 bytes of buffer
• images are sourced from two places
• from internal flash
1.5 Configuring the Library MLA - Graphics Library Help Configuration Examples
73
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf