projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97562c1
)
common/lcd_console: ask only one-time for bg/fg-color per call
author
Hannes Petermaier
<
[email protected]
>
Fri, 27 Mar 2015 07:01:36 +0000
(08:01 +0100)
committer
Anatolij Gustschin
<
[email protected]
>
Sat, 18 Apr 2015 08:24:38 +0000
(10:24 +0200)
Don't call the lcd_getfgcolor and lcd_getbgcolor within the "draw-loop", this
only wastes time.
Signed-off-by: Hannes Petermaier <
[email protected]
>
Signed-off-by: Hannes Petermaier <
[email protected]
>
Acked-by: Nikita Kiryanov <
[email protected]
>
common/lcd_console.c
patch
|
blob
|
history
diff --git
a/common/lcd_console.c
b/common/lcd_console.c
index 243b7c5c990465b6dbe5b9b3be0d86a76c06566f..b7dda7ad85f27592575d60575d8172916aa3e814 100644
(file)
--- a/
common/lcd_console.c
+++ b/
common/lcd_console.c
@@
-59,7
+59,8
@@
static void lcd_putc_xy(ushort x, ushort y, char c)
{
uchar *dest;
ushort row;
- int fg_color, bg_color;
+ int fg_color = lcd_getfgcolor();
+ int bg_color = lcd_getbgcolor();
int i;
dest = (uchar *)(lcd_console_address +
@@
-73,10
+74,6
@@
static void lcd_putc_xy(ushort x, ushort y, char c)
#else
uchar *d = dest;
#endif
-
- fg_color = lcd_getfgcolor();
- bg_color = lcd_getbgcolor();
-
uchar bits;
bits = video_fontdata[c * VIDEO_FONT_HEIGHT + row];