aboutsummaryrefslogtreecommitdiff
path: root/src/dev/sdl/lv_sdl_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/sdl/lv_sdl_window.c')
-rw-r--r--src/dev/sdl/lv_sdl_window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/sdl/lv_sdl_window.c b/src/dev/sdl/lv_sdl_window.c
index 4ff0b4cc5..123703a93 100644
--- a/src/dev/sdl/lv_sdl_window.c
+++ b/src/dev/sdl/lv_sdl_window.c
@@ -357,7 +357,7 @@ static void texture_resize(lv_display_t * disp)
static void res_chg_event_cb(lv_event_t * e)
{
- lv_display_t * disp = lv_event_get_target(e);
+ lv_display_t * disp = lv_event_get_current_target(e);
int32_t hor_res = lv_display_get_horizontal_resolution(disp);
int32_t ver_res = lv_display_get_vertical_resolution(disp);