Skip to content

Commit 50bedbb

Browse files
Copilotlijy91
andauthored
Correct bounds construction in native_window_set_bounds (#34)
* Initial plan * fix: correct bounds width height order Co-authored-by: lijy91 <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: lijy91 <[email protected]>
1 parent 0f82451 commit 50bedbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/capi/window_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void native_window_set_bounds(native_window_t window, native_rectangle_t bounds)
212212
if (!window)
213213
return;
214214
auto* win = static_cast<nativeapi::Window*>(window);
215-
Rectangle rect = {bounds.x, bounds.y, bounds.height, bounds.width};
215+
Rectangle rect = {bounds.x, bounds.y, bounds.width, bounds.height};
216216
win->SetBounds(rect);
217217
}
218218

0 commit comments

Comments
 (0)