mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(blend): fix LV_COLOR_FORMAT_NATIVE_RESERVED
This commit is contained in:
parent
d78aebf224
commit
fcccc3de0d
@ -17,9 +17,6 @@
|
||||
* DEFINES
|
||||
*********************/
|
||||
|
||||
/*Recommended only to emulate a setup with a display controller*/
|
||||
#define LV_SDL_PARTIAL_MODE 0
|
||||
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
**********************/
|
||||
|
@ -103,7 +103,7 @@ LV_ATTRIBUTE_FAST_MEM void lv_draw_sw_blend_basic(lv_draw_ctx_t * draw_ctx, cons
|
||||
if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) return;
|
||||
|
||||
lv_color_t * dest_buf = draw_ctx->buf;
|
||||
if(draw_ctx->color_format == LV_COLOR_FORMAT_NATIVE) {
|
||||
if(draw_ctx->color_format == LV_COLOR_FORMAT_NATIVE || draw_ctx->color_format == LV_COLOR_FORMAT_NATIVE_REVERSED) {
|
||||
dest_buf += dest_stride * (blend_area.y1 - draw_ctx->buf_area->y1) + (blend_area.x1 - draw_ctx->buf_area->x1);
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user