mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
Merge branch 'master' of https://github.com/littlevgl/lvgl
This commit is contained in:
commit
a905be4f90
@ -56,7 +56,7 @@
|
|||||||
#define PXP_OUT_PIXEL_FORMAT kPXP_OutputPixelFormatRGB565
|
#define PXP_OUT_PIXEL_FORMAT kPXP_OutputPixelFormatRGB565
|
||||||
#define PXP_AS_PIXEL_FORMAT kPXP_AsPixelFormatRGB565
|
#define PXP_AS_PIXEL_FORMAT kPXP_AsPixelFormatRGB565
|
||||||
#define PXP_PS_PIXEL_FORMAT kPXP_PsPixelFormatRGB565
|
#define PXP_PS_PIXEL_FORMAT kPXP_PsPixelFormatRGB565
|
||||||
#elif
|
#else
|
||||||
#error Only 16bit color depth is supported. Set LV_COLOR_DEPTH to 16.
|
#error Only 16bit color depth is supported. Set LV_COLOR_DEPTH to 16.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -316,10 +316,10 @@ static void basic_init(void)
|
|||||||
style_init_reset(&styles->pad_inner);
|
style_init_reset(&styles->pad_inner);
|
||||||
|
|
||||||
lv_style_set_pad_inner(&styles->pad_inner, LV_STATE_DEFAULT,
|
lv_style_set_pad_inner(&styles->pad_inner, LV_STATE_DEFAULT,
|
||||||
lv_disp_get_size_category(NULL) <= LV_DISP_MEDIUM_LIMIT ? LV_DPX(20) : LV_DPX(40));
|
lv_disp_get_size_category(NULL) <= LV_DISP_SIZE_MEDIUM ? LV_DPX(20) : LV_DPX(40));
|
||||||
|
|
||||||
style_init_reset(&styles->pad_small);
|
style_init_reset(&styles->pad_small);
|
||||||
lv_style_int_t pad_small_value = lv_disp_get_size_category(NULL) <= LV_DISP_MEDIUM_LIMIT ? LV_DPX(10) : LV_DPX(20);
|
lv_style_int_t pad_small_value = lv_disp_get_size_category(NULL) <= LV_DISP_SIZE_MEDIUM ? LV_DPX(10) : LV_DPX(20);
|
||||||
lv_style_set_pad_left(&styles->pad_small, LV_STATE_DEFAULT, pad_small_value);
|
lv_style_set_pad_left(&styles->pad_small, LV_STATE_DEFAULT, pad_small_value);
|
||||||
lv_style_set_pad_right(&styles->pad_small, LV_STATE_DEFAULT, pad_small_value);
|
lv_style_set_pad_right(&styles->pad_small, LV_STATE_DEFAULT, pad_small_value);
|
||||||
lv_style_set_pad_top(&styles->pad_small, LV_STATE_DEFAULT, pad_small_value);
|
lv_style_set_pad_top(&styles->pad_small, LV_STATE_DEFAULT, pad_small_value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user