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

Fix getting window size #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rivten
Copy link

@rivten rivten commented Nov 4, 2022

At least for me (LOVE 11.4, LuaJIT 2.1.0-beta3), the basic repo does not work as is. If I take the sample code, there is no imgui window appearing.

Delving with gdb, I figured out that the window width and height at the start of NewFrame were always 0. I have very limited Lua FFI understand, as well as understanding of the stack. But I tried changing the float return to -1 (last value on the stack), and now the code works !

So, here is my PR. I have no idea if this is affecting others.

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

Successfully merging this pull request may close these issues.

1 participant