mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 03:28:53 +08:00
fix lcd_sdl2_resize
This commit is contained in:
parent
0050a3263a
commit
f39b036f0f
@ -136,7 +136,7 @@ static ret_t lcd_sdl2_resize(lcd_t* lcd, wh_t w, wh_t h, uint32_t line_length) {
|
||||
lcd_sdl2_t* sdl = (lcd_sdl2_t*)lcd;
|
||||
if (w <= sdl->lcd_mem->base.w && h <= sdl->lcd_mem->base.h) return RET_OK;
|
||||
|
||||
lcd_sdl2_destroy(lcd);
|
||||
SDL_DestroyTexture(sdl->texture);
|
||||
sdl->lcd_mem->base.w = w;
|
||||
sdl->lcd_mem->base.h = h;
|
||||
#ifdef WITH_FB_BGRA8888
|
||||
|
Loading…
Reference in New Issue
Block a user