1
0
Fork 0
forked from len0rd/rockbox

Added clearpixel() and clearline().

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5924 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-02-12 00:30:00 +00:00
parent 4dcb25d4e7
commit 85a026eacd
2 changed files with 12 additions and 0 deletions

View file

@ -100,6 +100,11 @@ void pgfx_drawpixel(int x, int y)
gfx_buffer[pixel_height * (x/5) + y] |= 0x10 >> (x%5);
}
void pgfx_clearpixel(int x, int y)
{
gfx_buffer[pixel_height * (x/5) + y] &= ~(0x10 >> (x%5));
}
void pgfx_invertpixel(int x, int y)
{
gfx_buffer[pixel_height * (x/5) + y] ^= 0x10 >> (x%5);
@ -179,6 +184,11 @@ void pgfx_drawline(int x1, int y1, int x2, int y2)
linefunc(x1, y1, x2, y2, pgfx_drawpixel);
}
void pgfx_clearline(int x1, int y1, int x2, int y2)
{
linefunc(x1, y1, x2, y2, pgfx_clearpixel);
}
void pgfx_invertline(int x1, int y1, int x2, int y2)
{
linefunc(x1, y1, x2, y2, pgfx_invertpixel);