aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJeroen Hofstee2013-01-22 04:44:14 -0600
committerAnatolij Gustschin2013-03-21 04:37:15 -0500
commitfbd239bea7d0847495da57dcf03248c13040c763 (patch)
treef6516b48328349c9572cbf9e295f9e7ee60b940c /api
parent2e72972a44b152a8b7d8dd9259e9c6b30ed7d4f3 (diff)
downloadu-boot-fbd239bea7d0847495da57dcf03248c13040c763.tar.gz
u-boot-fbd239bea7d0847495da57dcf03248c13040c763.tar.xz
u-boot-fbd239bea7d0847495da57dcf03248c13040c763.zip
api/api_display: use the getters for console size info
cc: Che-Liang Chiou <clchiou@chromium.org> Acked-by: Che-Liang Chiou <clchiou@chromium.org> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'api')
-rw-r--r--api/api_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/api_display.c b/api/api_display.c
index 643917088f..c167db7b14 100644
--- a/api/api_display.c
+++ b/api/api_display.c
@@ -45,8 +45,8 @@ int display_get_info(int type, struct display_info *di)
45 case DISPLAY_TYPE_LCD: 45 case DISPLAY_TYPE_LCD:
46 di->pixel_width = panel_info.vl_col; 46 di->pixel_width = panel_info.vl_col;
47 di->pixel_height = panel_info.vl_row; 47 di->pixel_height = panel_info.vl_row;
48 di->screen_rows = CONSOLE_ROWS; 48 di->screen_rows = lcd_get_screen_rows();
49 di->screen_cols = CONSOLE_COLS; 49 di->screen_cols = lcd_get_screen_columns();
50 break; 50 break;
51#endif 51#endif
52 } 52 }