mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-29 06:36:05 +08:00
refactor(obj) rename lv_dpx_obj to lv_obj_dpx
This commit is contained in:
+1
-1
@@ -369,7 +369,7 @@ bool lv_obj_is_valid(const lv_obj_t * obj);
|
|||||||
* @param n the number of pixels to scale
|
* @param n the number of pixels to scale
|
||||||
* @return `n x current_dpi/160`
|
* @return `n x current_dpi/160`
|
||||||
*/
|
*/
|
||||||
static inline lv_coord_t lv_dpx_obj(const lv_obj_t * obj, lv_coord_t n)
|
static inline lv_coord_t lv_obj_dpx(const lv_obj_t * obj, lv_coord_t n)
|
||||||
{
|
{
|
||||||
return _LV_DPX_CALC(lv_disp_get_dpi(lv_obj_get_disp(obj)), n);
|
return _LV_DPX_CALC(lv_disp_get_dpi(lv_obj_get_disp(obj)), n);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user