diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-05-12 13:00:48 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-05-12 13:00:48 -0600 |
commit | 8b0f3c04b993fd5fd5d81abee68c36ccb3bcfbf9 (patch) | |
tree | dafd8642debb0c9ffa03697a7d13816349935b93 /NxWidgets/libnxwidgets/src | |
parent | 088ea83de16b8961adb323d96b78fabf63f4b334 (diff) | |
download | nuttx-8b0f3c04b993fd5fd5d81abee68c36ccb3bcfbf9.tar.gz nuttx-8b0f3c04b993fd5fd5d81abee68c36ccb3bcfbf9.tar.bz2 nuttx-8b0f3c04b993fd5fd5d81abee68c36ccb3bcfbf9.zip |
Fix typo RBG -> RGB in several macros
Diffstat (limited to 'NxWidgets/libnxwidgets/src')
-rw-r--r-- | NxWidgets/libnxwidgets/src/cscaledbitmap.cxx | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/NxWidgets/libnxwidgets/src/cscaledbitmap.cxx b/NxWidgets/libnxwidgets/src/cscaledbitmap.cxx index 083868f70..ad0bd1953 100644 --- a/NxWidgets/libnxwidgets/src/cscaledbitmap.cxx +++ b/NxWidgets/libnxwidgets/src/cscaledbitmap.cxx @@ -511,32 +511,32 @@ bool CScaledBitmap::rowColor(FAR uint8_t *row, b16_t column, #if CONFIG_NXWIDGETS_FMT == FB_FMT_RGB8_332 uint8_t color = row[col1]; - color1.r = RBG8RED(color); - color1.g = RBG8GREEN(color); - color1.b = RBG8BLUE(color); + color1.r = RGB8RED(color); + color1.g = RGB8GREEN(color); + color1.b = RGB8BLUE(color); transparent1 = (color == CONFIG_NXWIDGETS_TRANSPARENT_COLOR); color = row[col2]; - color2.r = RBG8RED(color); - color2.g = RBG8GREEN(color); - color2.b = RBG8BLUE(color); + color2.r = RGB8RED(color); + color2.g = RGB8GREEN(color); + color2.b = RGB8BLUE(color); transparent2 = (color == CONFIG_NXWIDGETS_TRANSPARENT_COLOR); #elif CONFIG_NXWIDGETS_FMT == FB_FMT_RGB16_565 FAR uint16_t *row16 = (FAR uint16_t*)row; uint16_t color = row16[col1]; - color1.r = RBG16RED(color); - color1.g = RBG16GREEN(color); - color1.b = RBG16BLUE(color); + color1.r = RGB16RED(color); + color1.g = RGB16GREEN(color); + color1.b = RGB16BLUE(color); transparent1 = (color == CONFIG_NXWIDGETS_TRANSPARENT_COLOR); color = row16[col2]; - color2.r = RBG16RED(color); - color2.g = RBG16GREEN(color); - color2.b = RBG16BLUE(color); + color2.r = RGB16RED(color); + color2.g = RGB16GREEN(color); + color2.b = RGB16BLUE(color); transparent2 = (color == CONFIG_NXWIDGETS_TRANSPARENT_COLOR); @@ -560,16 +560,16 @@ bool CScaledBitmap::rowColor(FAR uint8_t *row, b16_t column, #elif CONFIG_NXWIDGETS_FMT == FB_FMT_RGB32 FAR uint32_t *row32 = (FAR uint32_t*)row; uint32_t color = row32[col1]; - color1.r = RBG24RED(color); - color1.g = RBG24GREEN(color); - color1.b = RBG24BLUE(color); + color1.r = RGB24RED(color); + color1.g = RGB24GREEN(color); + color1.b = RGB24BLUE(color); transparent1 = (color == CONFIG_NXWIDGETS_TRANSPARENT_COLOR); color = row32[col2]; - color2.r = RBG24RED(color); - color2.g = RBG24GREEN(color); - color2.b = RBG24BLUE(color); + color2.r = RGB24RED(color); + color2.g = RGB24GREEN(color); + color2.b = RGB24BLUE(color); transparent2 = (color == CONFIG_NXWIDGETS_TRANSPARENT_COLOR); |