-
Notifications
You must be signed in to change notification settings - Fork 31
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
Windowing on Windows #47
Comments
Dear @agoujot, thanks for the bug report! I was able to reproduce both of your issues. I tried a quick fix over at master...nojb:graphics:fix_win32 You may want to try it and confirm whether it works for you. Since this project is not actively developed, am not sure how likely it is that these fixes (if they are indeed correct) will be integrated. But in any case, it would be great if you could confirm whether they fix things on your side. |
Thank you for answering! |
The Graphics library is not deprecated properly speaking, just not actively developed and barely maintained because nobody seems to care enough about it to contribute actual code to improve it. Concerning alternatives, the OCaml-SDL bindings look rather popular, if only because there are several of them... |
Under Windows, open_graph dimensions do not take into account
the height of the title bar, meaning it takes some default 17px from the top of the windowthings (I don't know exactly what), which means that the window is cropped at the top and at the right, which has to be manually compensated.Also, from OCaml we cannot see the actual height, which is customizable, but the C code could.On another note, resize_window is not implemented, and it certainly would be great to have it (else as of now the window always has the size defined in the open_graph).
The text was updated successfully, but these errors were encountered: