-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add support for get_render_size() #31
Comments
Thanks for reporting! Yeah, I agree, getting the size of the yellow outline sounds more useful.
Hmm, that would work. But how do you feel about the offsets passed to |
You could add a method to switch the mode maybe. The original way could be default for compatibility, and then the scripter could do |
I would personally prefer that, so that the alignement is the same whether fullscreen or windowed. |
The get_display_size() method returns the size of the window, which may differ from the actual render size. It is possible to calculate the render size using aspect ratios, but it would be a lot nicer to be able to get it easily through Dolphin. With the render size, you can align text and other GUI elements to be in the actual game render instead of all over the window.
Here is an example. get_display_size() currently gives the size of the red outline in this image, and the proposed get_render_size() would give the size of the yellow outline in the image.
The text was updated successfully, but these errors were encountered: