[v6.0] add an option to define hard coded resolution
@@ -131,8 +131,13 @@ static inline void lv_scr_load(lv_obj_t * scr)
* Recommended only if you have one display
*------------------------------------------------*/
+#ifndef LV_HOR_RES
#define LV_HOR_RES lv_disp_get_hor_res(lv_disp_get_default())
+#endif
+
+#ifndef LV_VER_RES
#define LV_VER_RES lv_disp_get_ver_res(lv_disp_get_default())
+#endif
#ifdef __cplusplus
} /* extern "C" */
