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

RenderTexture Display Method Return Incorrect Type #211

Closed
Rosst0pher opened this issue Jan 13, 2022 · 3 comments
Closed

RenderTexture Display Method Return Incorrect Type #211

Rosst0pher opened this issue Jan 13, 2022 · 3 comments
Labels

Comments

@Rosst0pher
Copy link
Contributor

sfRenderTexture_display return type disparity with CSFML.

sfRenderTexture_display currently returns bool and supposed to return void.

@eXpl0it3r eXpl0it3r added the Bug label Jan 13, 2022
@eXpl0it3r
Copy link
Member

eXpl0it3r commented Jun 15, 2023

Was this fixed? I can't seem to find what you're mentioning.

CSFML

https://github.com/SFML/CSFML/blob/d270e9a513094176bccc104865f20bdd2e9679e7/include/SFML/Graphics/RenderTexture.h#L105

SFML.Net

public void Display()

I'll close this for now, if you still see an issue, feel free to reopen it. 🙂

@eXpl0it3r eXpl0it3r closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2023
@Rosst0pher
Copy link
Contributor Author

Hey @eXpl0it3r hope all is well

I just double checked what I raised here and can confirm this is still an issue if you check the pinvoke method which doesn't match CSFML return type.

https://github.com/SFML/SFML.Net/blob/master/src/SFML.Graphics/RenderTexture.cs#L554

https://github.com/SFML/CSFML/blob/master/include/SFML/Graphics/RenderTexture.h#L105

I haven't been active around SFML for some time now and unfortunately no longer have an environemnt setup to quickly fix this minor issue 😔I also don't see a reopen option, only to create a new one.

@eXpl0it3r
Copy link
Member

eXpl0it3r commented Jun 15, 2023

Ahh! I was looking at the function signature and not the pInvoke signature. Thanks for pointing me in the right direction.
I'll re-open it then. Feel free to provide a fix for it, otherwise someone else might pick it up, or I might eventually get to it 🙂

@eXpl0it3r eXpl0it3r reopened this Jun 15, 2023
Rosst0pher added a commit to Rosst0pher/SFML.Net that referenced this issue Aug 9, 2023
sfRenderTexture_display return type fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants