diff options
Diffstat (limited to 'apps/plugins/lib/playergfx.c')
-rw-r--r-- | apps/plugins/lib/playergfx.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugins/lib/playergfx.c b/apps/plugins/lib/playergfx.c index 0289e7acc8..5175061642 100644 --- a/apps/plugins/lib/playergfx.c +++ b/apps/plugins/lib/playergfx.c | |||
@@ -100,6 +100,11 @@ void pgfx_drawpixel(int x, int y) | |||
100 | gfx_buffer[pixel_height * (x/5) + y] |= 0x10 >> (x%5); | 100 | gfx_buffer[pixel_height * (x/5) + y] |= 0x10 >> (x%5); |
101 | } | 101 | } |
102 | 102 | ||
103 | void pgfx_clearpixel(int x, int y) | ||
104 | { | ||
105 | gfx_buffer[pixel_height * (x/5) + y] &= ~(0x10 >> (x%5)); | ||
106 | } | ||
107 | |||
103 | void pgfx_invertpixel(int x, int y) | 108 | void pgfx_invertpixel(int x, int y) |
104 | { | 109 | { |
105 | gfx_buffer[pixel_height * (x/5) + y] ^= 0x10 >> (x%5); | 110 | 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) | |||
179 | linefunc(x1, y1, x2, y2, pgfx_drawpixel); | 184 | linefunc(x1, y1, x2, y2, pgfx_drawpixel); |
180 | } | 185 | } |
181 | 186 | ||
187 | void pgfx_clearline(int x1, int y1, int x2, int y2) | ||
188 | { | ||
189 | linefunc(x1, y1, x2, y2, pgfx_clearpixel); | ||
190 | } | ||
191 | |||
182 | void pgfx_invertline(int x1, int y1, int x2, int y2) | 192 | void pgfx_invertline(int x1, int y1, int x2, int y2) |
183 | { | 193 | { |
184 | linefunc(x1, y1, x2, y2, pgfx_invertpixel); | 194 | linefunc(x1, y1, x2, y2, pgfx_invertpixel); |