From abc2c59e57c919b51e46b8dedc3a07dc14fd3911 Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Thu, 6 Aug 2026 23:39:03 +0800 Subject: style: format code with clang-format --- components/drivers/graphic/graphic.c | 8 ++++---- components/drivers/include/drivers/lcd.h | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'components') diff --git a/components/drivers/graphic/graphic.c b/components/drivers/graphic/graphic.c index 90bdde28bb..14de5a6cda 100644 --- a/components/drivers/graphic/graphic.c +++ b/components/drivers/graphic/graphic.c @@ -123,7 +123,7 @@ static rt_err_t plane_fb_pan_display(struct rt_graphic_plane *plane, } offset = rect->y * plane->line_length + rect->x * byte_per_pixel; - span = (rect->height - 1) * plane->line_length + row_bytes; + span = (rect->height - 1) * plane->line_length + row_bytes; if (offset <= plane->framebuffer_len && span <= plane->framebuffer_len - offset) { @@ -214,7 +214,7 @@ static rt_err_t _graphic_control(rt_device_t dev, int cmd, void *args) { rt_err_t err = RT_EOK; rt_bool_t need_schedule = RT_FALSE; - rt_bool_t wait_vsync = RT_FALSE; + rt_bool_t wait_vsync = RT_FALSE; struct rt_graphic_device *gdev = raw_to_graphic(dev); _retry: @@ -567,8 +567,8 @@ _retry: var->yres = plane->height; var->xres_virtual = plane->width; var->yres_virtual = plane->height * (plane->framebuffer_len / plane->screen_len); - var->xoffset = plane->x; - var->yoffset = plane->y; + var->xoffset = plane->x; + var->yoffset = plane->y; var->bits_per_pixel = plane->bits_per_pixel; if (plane == gdev->primary_plane) diff --git a/components/drivers/include/drivers/lcd.h b/components/drivers/include/drivers/lcd.h index 35530b8f37..8a81cd6b8f 100644 --- a/components/drivers/include/drivers/lcd.h +++ b/components/drivers/include/drivers/lcd.h @@ -41,13 +41,13 @@ #define FBIO_WAITFORVSYNC 0x4620 /* fb_var_screeninfo.activate */ -#define FB_ACTIVATE_NOW 0 -#define FB_ACTIVATE_NXTOPEN 1 -#define FB_ACTIVATE_TEST 2 -#define FB_ACTIVATE_MASK 15 -#define FB_ACTIVATE_VBL 16 -#define FB_ACTIVATE_ALL 64 -#define FB_ACTIVATE_FORCE 128 +#define FB_ACTIVATE_NOW 0 +#define FB_ACTIVATE_NXTOPEN 1 +#define FB_ACTIVATE_TEST 2 +#define FB_ACTIVATE_MASK 15 +#define FB_ACTIVATE_VBL 16 +#define FB_ACTIVATE_ALL 64 +#define FB_ACTIVATE_FORCE 128 struct fb_bitfield { -- cgit v1.3.1