mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-22 18:20:40 +00:00
17 lines
348 B
C
17 lines
348 B
C
#include "../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;
|
|
}
|