Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window Border in Windows #37

Closed
Noxivs opened this issue Apr 11, 2014 · 7 comments
Closed

Window Border in Windows #37

Noxivs opened this issue Apr 11, 2014 · 7 comments

Comments

@Noxivs
Copy link

Noxivs commented Apr 11, 2014

Hi,
It's me again. I'm glad that sfml works properly on windows seven but the border window of the example is like a windows 98 (aero theme not loaded ?). We're in 2014, and i hope you know how i can forget this old border...

Regards.

@Noxivs
Copy link
Author

Noxivs commented May 14, 2014

i found this : https://github.com/LaurentGomila/CSFML/blob/master/src/SFML/Main/SFML_Main.cpp

is it taken into account by the ffi ?

@jeremyletang
Copy link
Owner

Hi,

Sorry to not answer the first time, i've completely forgotten.

As i have no windows to test, i'm not sure that i can help a lot. However i don't think that bind SFML_Main in the binding is needed, it's just used to abstracted the WinMain and don't have to use some defines depending of the platform when you make a program with SFML.

I think this can help rust-lang/rust#8510 (comment), this comment seems say that you need to pass some arguments to rustc when you build a gui application on Windows.
As --link-args doesn't exist anymore, I think the arguments should be: rustc main.rs -C link-args="-Wl,--subsystem,windows".

I hope this can help. Tell me if it solve your problem.

@Noxivs
Copy link
Author

Noxivs commented May 14, 2014

I already tried, it doesn't work.
One thing is weird, when i start the app from .exe, i have this classic visual style.

Alt text

But if i start from the msys console it's work.
Alt text

i can use rsfml but if we can fix it,it would be nice :)

@jeremyletang
Copy link
Owner

As said before i really don't know windows environnement.

But it seems that @klutzy is quite an expert with Rust and Window stuff. So maybe I can try to contact him with IRC, or github, he may have an idea about this issue.

Moreover i agree, it would be nice to fix this problem.

@klutzy
Copy link

klutzy commented May 15, 2014

Reproduced on win7; seems like rust-lang/rust#13259.
unsafe { ::std::rt::stack::record_sp_limit(0); } fixes the phenomenon, but the workaround may cause problems if stack overflows.

@Noxivs
Copy link
Author

Noxivs commented May 15, 2014

Indeed, it works

@crumblingstatue
Copy link
Collaborator

With rust-lang/rust#13259 fixed, this should be fixed too.
Closing, feel free to reopen if this issue still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants