mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix: fix pycparser in SDL and update rlottie, ffmpeg for cache API changes
This commit is contained in:
parent
0471034a73
commit
873364f65f
@ -159,7 +159,7 @@ void lv_sdl_window_set_title(lv_display_t * disp, const char * title)
|
||||
SDL_SetWindowTitle(dsc->window, title);
|
||||
}
|
||||
|
||||
SDL_Renderer * lv_sdl_window_get_renderer(lv_display_t * disp)
|
||||
void * lv_sdl_window_get_renderer(lv_display_t * disp)
|
||||
{
|
||||
lv_sdl_window_t * dsc = lv_display_get_driver_data(disp);
|
||||
return dsc->renderer;
|
||||
|
@ -18,7 +18,6 @@ extern "C" {
|
||||
#include "../../indev/lv_indev.h"
|
||||
|
||||
#if LV_USE_SDL
|
||||
#include LV_SDL_INCLUDE_PATH
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
@ -42,7 +41,7 @@ lv_display_t * _lv_sdl_get_disp_from_win_id(uint32_t win_id);
|
||||
|
||||
void lv_sdl_window_set_title(lv_display_t * disp, const char * title);
|
||||
|
||||
SDL_Renderer * lv_sdl_window_get_renderer(lv_display_t * disp);
|
||||
void * lv_sdl_window_get_renderer(lv_display_t * disp);
|
||||
|
||||
void lv_sdl_quit();
|
||||
|
||||
|
@ -798,7 +798,7 @@ static void lv_ffmpeg_player_frame_update_cb(lv_timer_t * timer)
|
||||
}
|
||||
|
||||
lv_cache_lock();
|
||||
lv_cache_invalidate(lv_cache_find(lv_image_get_src(obj), LV_CACHE_SRC_TYPE_PTR, 0, 0));
|
||||
lv_cache_invalidate_by_src(lv_image_get_src(obj), LV_CACHE_SRC_TYPE_POINTER);
|
||||
lv_cache_unlock();
|
||||
|
||||
lv_obj_invalidate(obj);
|
||||
@ -837,7 +837,7 @@ static void lv_ffmpeg_player_destructor(const lv_obj_class_t * class_p,
|
||||
}
|
||||
|
||||
lv_cache_lock();
|
||||
lv_cache_invalidate(lv_cache_find(lv_image_get_src(obj), LV_CACHE_SRC_TYPE_PTR, 0, 0));
|
||||
lv_cache_invalidate_by_src(lv_image_get_src(obj), LV_CACHE_SRC_TYPE_POINTER);
|
||||
lv_cache_unlock();
|
||||
|
||||
ffmpeg_close(player->ffmpeg_ctx);
|
||||
|
@ -175,7 +175,7 @@ static void lv_rlottie_destructor(const lv_obj_class_t * class_p, lv_obj_t * obj
|
||||
}
|
||||
|
||||
lv_cache_lock();
|
||||
lv_cache_invalidate(lv_cache_find(&rlottie->imgdsc, LV_CACHE_SRC_TYPE_PTR, 0, 0));
|
||||
lv_cache_invalidate_by_src(&rlottie->imgdsc, LV_CACHE_SRC_TYPE_POINTER);
|
||||
lv_cache_unlock();
|
||||
|
||||
if(rlottie->allocated_buf) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user