Skip to content

Commit

Permalink
Rename LVGL.SimulatorWindow.WindowContext to LVGL.Window.Context.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouriNaruto committed Dec 15, 2023
1 parent 3467e14 commit 51311c5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions LvglWindowsSimulator/win32drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ EXTERN_C lv_windows_window_context_t* lv_windows_get_window_context(
HWND window_handle)
{
return (lv_windows_window_context_t*)(
GetPropW(window_handle, L"LVGL.SimulatorWindow.WindowContext"));
GetPropW(window_handle, L"LVGL.Window.Context"));
}

static void lv_windows_check_display_existence_timer_callback(lv_timer_t* timer)
Expand Down Expand Up @@ -1491,10 +1491,7 @@ static LRESULT CALLBACK lv_windows_window_message_callback(
return -1;
}

if (!SetPropW(
hWnd,
L"LVGL.SimulatorWindow.WindowContext",
(HANDLE)(context)))
if (!SetPropW(hWnd, L"LVGL.Window.Context", (HANDLE)(context)))
{
return -1;
}
Expand Down Expand Up @@ -1668,7 +1665,7 @@ static LRESULT CALLBACK lv_windows_window_message_callback(
case WM_DESTROY:
{
lv_windows_window_context_t* context = (lv_windows_window_context_t*)(
RemovePropW(hWnd, L"LVGL.SimulatorWindow.WindowContext"));
RemovePropW(hWnd, L"LVGL.Window.Context"));
if (context)
{
lv_disp_t* display_device_object = context->display_device_object;
Expand Down

0 comments on commit 51311c5

Please sign in to comment.