Skip to content
Snippets Groups Projects
Commit fbd239be authored by Jeroen Hofstee's avatar Jeroen Hofstee Committed by Anatolij Gustschin
Browse files

api/api_display: use the getters for console size info


cc: Che-Liang Chiou <clchiou@chromium.org>
Acked-by: default avatarChe-Liang Chiou <clchiou@chromium.org>
Signed-off-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
parent 2e72972a
No related branches found
No related tags found
No related merge requests found
...@@ -45,8 +45,8 @@ int display_get_info(int type, struct display_info *di) ...@@ -45,8 +45,8 @@ int display_get_info(int type, struct display_info *di)
case DISPLAY_TYPE_LCD: case DISPLAY_TYPE_LCD:
di->pixel_width = panel_info.vl_col; di->pixel_width = panel_info.vl_col;
di->pixel_height = panel_info.vl_row; di->pixel_height = panel_info.vl_row;
di->screen_rows = CONSOLE_ROWS; di->screen_rows = lcd_get_screen_rows();
di->screen_cols = CONSOLE_COLS; di->screen_cols = lcd_get_screen_columns();
break; break;
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment