#include #include #include 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; } }