Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions win32drv/win32drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,15 +273,18 @@ EXTERN_C HWND lv_win32_create_display_window(
HICON icon_handle,
int show_window_mode)
{
RECT rect = { 0, 0, hor_res, ver_res };
AdjustWindowRect(&rect, WINDOW_STYLE | WINDOW_EX_STYLE, false);

HWND display_window_handle = CreateWindowExW(
WINDOW_EX_STYLE,
LVGL_SIMULATOR_WINDOW_CLASS,
window_title,
WINDOW_STYLE,
CW_USEDEFAULT,
0,
hor_res,
ver_res,
rect.right - rect.left,
rect.bottom - rect.top,
NULL,
NULL,
instance_handle,
Expand Down