vxKernel/src/modules/display/dclear.c

14 lines
290 B
C

#include <vhex/display.h>
#include <vhex/defs/attributes.h>
#include <vhex/defs/types.h>
/* expose Video RAM */
extern uint16_t vhex_vram[];
/* dclear(): Fill the screen with a single color */
VWEAK void dclear(int color)
{
for (int i = 0; i < 396 * 224 ; ++i)
vhex_vram[i] = color;
}