21 lines
377 B
C
21 lines
377 B
C
#include <vhex/display.h>
|
|
#include <vhex/defs/attributes.h>
|
|
#include <vhex/defs/types.h>
|
|
|
|
|
|
VWEAK void dpixel(int x, int y, int color)
|
|
{
|
|
extern uint16_t vhex_vram[];
|
|
|
|
if (color == C_NONE)
|
|
return;
|
|
if ((unsigned int)x < 396 && (unsigned int)y < 224) {
|
|
if (color == C_INVERT) {
|
|
vhex_vram[(y * 396) + x] ^= 0xffff;
|
|
return;
|
|
}
|
|
vhex_vram[(y * 396) + x] = color;
|
|
}
|
|
|
|
}
|