Skip to content

[Windows] Adjust min_dimensions and max_dimensions using AdjustWindowRectEx. - #444

Merged
francesca64 merged 1 commit into
rust-windowing:masterfrom
Lymia:master
Apr 13, 2018
Merged

francesca64 merged 1 commit into
rust-windowing:masterfrom
Lymia:master

Conversation

@Lymia

@Lymia Lymia commented Apr 2, 2018

Copy link
Copy Markdown
Contributor

This fixes #196, although it does not update the documentation as suggested in the comments.

@francesca64

Copy link
Copy Markdown
Member

Sorry for the wait; you're at the top of my list now. Could you rebase/merge with the current master?

@Lymia

Lymia commented Apr 13, 2018

Copy link
Copy Markdown
Contributor Author

Rebased onto master.

@Lymia

Lymia commented Apr 13, 2018

Copy link
Copy Markdown
Contributor Author

I don't know what's going on with AppVeyor. That looks like a sporadic failure.

unsafe impl Send for WindowWrapper {}

pub unsafe fn adjust_size(
(x, y): (u32, u32), style: DWORD, ex_style: DWORD,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh, I never knew you could destructure a tuple in the function parameters. Thanks for teaching me something new today!

@francesca64

Copy link
Copy Markdown
Member

Thanks! Everything looks good, and it worked great when I tested it on Windows 10.

(I won't fuss about not making the documentation change, since the docs sorta need an overhaul soon anyway.)

@francesca64
francesca64 merged commit c327960 into rust-windowing:master Apr 13, 2018
@francesca64

Copy link
Copy Markdown
Member

...whoops, the CHANGELOG entry was under the wrong section from before. I'll have to remember to correct that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Win32: with_dimensions excludes decoration, with_max_dimensions includes them

2 participants