]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - api/api_display.c
api/api_display: use the getters for console size info
[karo-tx-uboot.git] / api / api_display.c
index 643917088f9b74135b6b8efd4276bc494437e28b..c167db7b14849cd5de3125280291889006dc17cf 100644 (file)
@@ -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
        }