1
0
Fork 0
forked from len0rd/rockbox

& is better than % for speed reasons

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@142 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-04-19 07:27:43 +00:00
parent df3b9a38b3
commit cec0010cb9

View file

@ -579,8 +579,8 @@ void lcd_invertrect (int x, int y, int nx, int ny)
lcd_bitmap (ones, x+i, y, 1, ny, FALSE); lcd_bitmap (ones, x+i, y, 1, ny, FALSE);
} }
#define DRAW_PIXEL(x,y) display[x][y/8] |= (1<<(y%8)) #define DRAW_PIXEL(x,y) display[x][y/8] |= (1<<(y&7))
#define CLEAR_PIXEL(x,y) display[x][y/8] &= ~(1<<(y%8)) #define CLEAR_PIXEL(x,y) display[x][y/8] &= ~(1<<(y&7))
void lcd_drawline( int x1, int y1, int x2, int y2 ) void lcd_drawline( int x1, int y1, int x2, int y2 )
{ {