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

First call to mfb_update doesn't do anything #3

Open
pfitzseb opened this issue Sep 7, 2020 · 1 comment
Open

First call to mfb_update doesn't do anything #3

pfitzseb opened this issue Sep 7, 2020 · 1 comment

Comments

@pfitzseb
Copy link

pfitzseb commented Sep 7, 2020

Might be an init problem?

MWE: Execute the following step-by-step:

window = mfb_open_ex("my display", 800, 600, MiniFB.WF_RESIZABLE)
mfb_update(window, rand(Int32, 800, 600))
mfb_update(window, ones(Int32, 800, 600).*typemax(Int32))
mfb_update(window, zeros(Int32, 800, 600))

The first call to mfb_update doesn't seem to do anything -- you'll only see a while and then a black screen.

@aviks
Copy link
Owner

aviks commented Sep 7, 2020

Hmnn.. might be a "works as expected" since the general idea is to update once per frame. So maybe it takes the first call to set stuff up? Will ask upstream.

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

2 participants