improve fast rotation

This commit is contained in:
lixianjing 2023-09-08 17:24:55 +08:00
parent 2dc59f8778
commit e051982147
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
2023/09/08
* 给APP的编译参数增加WIN32_RES参数(感谢智明提供补丁)
* 修复快速旋转构建180度图片的时候像素点偏移多一位的问题(感谢智明提供补丁)
2023/09/07
* 统一宏TK\_STRDUP和TK\_STRNDUP与对应接口的行为(感谢雨欣提供补丁)

View File

@ -306,7 +306,7 @@ static ret_t bitmap_init_impl_by_rotate(bitmap_t* bitmap, uint32_t w, uint32_t h
break;
}
case LCD_ORIENTATION_180: {
bdata = bdata + (h - 1) * line_length + w * bpp;
bdata = bdata + (h - 1) * line_length + (w - 1) * bpp;
for (i = 0; i < h; i++) {
uint8_t* d = bdata;
for (j = 0; j < w; j++) {