mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-09 20:00:40 +00:00
17 lines
337 B
C
17 lines
337 B
C
#include "wgt.h"
|
|
|
|
unsigned int wgetpixel (short x, short y)
|
|
{
|
|
return abuf[y * WGT_SYS.xres + x];
|
|
}
|
|
|
|
void wputpixel (short x, short y)
|
|
{
|
|
if ((y <= by) & (x <= bx) & (y >= ty) & (x >= tx))
|
|
abuf[y * WGT_SYS.xres + x] = currentcolor;
|
|
}
|
|
|
|
void wfastputpixel (short x, short y)
|
|
{
|
|
abuf[y * WGT_SYS.xres + x] = currentcolor;
|
|
}
|