diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-08-12 08:47:09 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-08-12 08:47:09 +0000 |
commit | 5ba6f01bdea716042497b5cfb5543dbe364e0171 (patch) | |
tree | 5537cc8e983c3b43ba2b634258fae74c4a359469 /firmware | |
parent | a03499c9401d8e65314ee37113dddeb18f66e332 (diff) |
Code makeup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1680 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/lcd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd.h b/firmware/drivers/lcd.h index ed2fe7ee45..5b8c68cdc8 100644 --- a/firmware/drivers/lcd.h +++ b/firmware/drivers/lcd.h @@ -79,9 +79,9 @@ extern void lcd_double_height (bool on); #define LCD_WIDTH 112 /* Display width in pixels */ #define LCD_HEIGHT 64 /* Display height in pixels */ -#define DRAW_PIXEL(x,y) lcd_framebuffer[x][y/8] |= (1<<(y&7)) -#define CLEAR_PIXEL(x,y) lcd_framebuffer[x][y/8] &= ~(1<<(y&7)) -#define INVERT_PIXEL(x,y) lcd_framebuffer[x][y/8] ^= (1<<(y&7)) +#define DRAW_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] |= (1<<((y)&7)) +#define CLEAR_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] &= ~(1<<((y)&7)) +#define INVERT_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] ^= (1<<((y)&7)) /* * Memory copy of display bitmap |