Skip to content

Commit

Permalink
Use driver_data instead of user_data.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouriNaruto committed Dec 6, 2023
1 parent 7ed4237 commit 4a6bea8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LvglWindowsSimulator/win32drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ static void lv_win32_display_driver_flush_callback(
const lv_area_t* area,
uint8_t* px_map)
{
HWND window_handle = (HWND)lv_display_get_user_data(disp_drv);
HWND window_handle = (HWND)lv_display_get_driver_data(disp_drv);
if (!window_handle)
{
lv_display_flush_ready(disp_drv);
Expand Down Expand Up @@ -712,7 +712,7 @@ static lv_win32_window_context_t* lv_win32_get_display_context(
if (display)
{
return lv_win32_get_window_context(
(HWND)lv_display_get_user_data(display));
(HWND)lv_display_get_driver_data(display));
}

return NULL;
Expand Down Expand Up @@ -751,7 +751,7 @@ static LRESULT CALLBACK lv_win32_window_message_callback(
lv_display_set_flush_cb(
context->display_device_object,
lv_win32_display_driver_flush_callback);
lv_display_set_user_data(
lv_display_set_driver_data(
context->display_device_object,
hWnd);
#if !LV_WINDOWS_ALLOW_DPI_OVERRIDE
Expand Down

0 comments on commit 4a6bea8

Please sign in to comment.