[U-Boot,09/10] api/api_display: use the getters for console size info

Submitted by Jeroen Hofstee on Jan. 12, 2013, 10:07 p.m.

Details

Message ID 1358028480-4979-10-git-send-email-jeroen@myspectrum.nl
State Superseded
Delegated to: Anatolij Gustschin
Headers show

Commit Message

Jeroen Hofstee Jan. 12, 2013, 10:07 p.m.
cc: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
---
 api/api_display.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Che-liang Chiou Jan. 15, 2013, 6:14 p.m.
Acked-by: Che-Liang Chiou <clchiou@chromium.org>

On Sat, Jan 12, 2013 at 2:07 PM, Jeroen Hofstee <jeroen@myspectrum.nl> wrote:
> cc: Che-Liang Chiou <clchiou@chromium.org>
> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
> ---
>  api/api_display.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/api/api_display.c b/api/api_display.c
> index 6439170..c167db7 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)
>         case DISPLAY_TYPE_LCD:
>                 di->pixel_width  = panel_info.vl_col;
>                 di->pixel_height = panel_info.vl_row;
> -               di->screen_rows = CONSOLE_ROWS;
> -               di->screen_cols = CONSOLE_COLS;
> +               di->screen_rows = lcd_get_screen_rows();
> +               di->screen_cols = lcd_get_screen_columns();
>                 break;
>  #endif
>         }
> --
> 1.7.9.5
>

Patch hide | download patch | download mbox

diff --git a/api/api_display.c b/api/api_display.c
index 6439170..c167db7 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)
 	case DISPLAY_TYPE_LCD:
 		di->pixel_width  = panel_info.vl_col;
 		di->pixel_height = panel_info.vl_row;
-		di->screen_rows = CONSOLE_ROWS;
-		di->screen_cols = CONSOLE_COLS;
+		di->screen_rows = lcd_get_screen_rows();
+		di->screen_cols = lcd_get_screen_columns();
 		break;
 #endif
 	}