diff options
| author | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-11 20:15:22 +0000 |
|---|---|---|
| committer | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-11 20:15:22 +0000 |
| commit | d5b076b64a8a3abd55fca0e9db7b13c6024bdfa3 (patch) | |
| tree | 59ceb57c1f2633b8fd8f6458463499bc776a7930 /firmware | |
| parent | 891c446302d341d2e8f6f2da54343589bf46d0e4 (diff) | |
| download | rockbox-d5b076b64a8a3abd55fca0e9db7b13c6024bdfa3.zip rockbox-d5b076b64a8a3abd55fca0e9db7b13c6024bdfa3.tar.gz rockbox-d5b076b64a8a3abd55fca0e9db7b13c6024bdfa3.tar.bz2 rockbox-d5b076b64a8a3abd55fca0e9db7b13c6024bdfa3.tar.xz | |
RTL: Cosmetic changes, no functional change - Rename constants
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23117 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
| -rw-r--r-- | firmware/drivers/lcd-bitmap-common.c | 2 | ||||
| -rw-r--r-- | firmware/export/lcd.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index 5bf4706..042500c 100644 --- a/firmware/drivers/lcd-bitmap-common.c +++ b/firmware/drivers/lcd-bitmap-common.c @@ -92,7 +92,7 @@ static void LCDFN(putsxyofs)(int x, int y, int ofs, const unsigned char *str) LCDFN(getstringsize)(str, &w, NULL); /* center takes precedence */ - if (vp_flags & VP_FLAG_CENTER_ALIGN) + if (vp_flags & VP_FLAG_ALIGN_CENTER) x = ((current_vp->width - w)/ 2) + x; else x = current_vp->width - w - x; diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 463714f..bf1680f 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -26,13 +26,13 @@ #include "cpu.h" #include "config.h" -#define VP_FLAG_IS_RTL 0x01 -#define VP_FLAG_CENTER_ALIGN 0x02 +#define VP_FLAG_ALIGN_RIGHT 0x01 +#define VP_FLAG_ALIGN_CENTER 0x02 #define VP_FLAG_ALIGNMENT_MASK \ - (VP_FLAG_IS_RTL|VP_FLAG_CENTER_ALIGN) + (VP_FLAG_ALIGN_RIGHT|VP_FLAG_ALIGN_CENTER) -#define VP_IS_RTL(vp) (((vp)->flags & VP_FLAG_ALIGNMENT_MASK) == VP_FLAG_IS_RTL) +#define VP_IS_RTL(vp) (((vp)->flags & VP_FLAG_ALIGNMENT_MASK) == VP_FLAG_ALIGN_RIGHT) struct viewport { int x; |