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
Incorrect window size returned if app is set to fullscreen #1594
Comments
This problem is more interesting than it seems. I'm on Windows, my display resolution is 1920 by 1080, previously before Panda3D 1.10.14 this code created a full-screen window, now only 640 by 480. from panda3d.core import GraphicsEngine, GraphicsPipeSelection, WindowProperties, \
FrameBufferProperties, GraphicsPipe
engine = GraphicsEngine.get_global_ptr()
pipe = GraphicsPipeSelection.get_global_ptr().make_default_pipe()
win_prop = WindowProperties()
win_prop.fullscreen = True
win_prop.size = (1920, 1080)
#win_prop.size = (800, 600)
win = engine.make_output(pipe,
name = "window",
sort=0,
fb_prop = FrameBufferProperties(),
win_prop = win_prop,
flags = GraphicsPipe.BF_require_window)
while not win.is_closed():
win.engine.render_frame() It is worth noting that this is not observed if the size is specified differently than that of the display. |
Must be a regression in 389b24e. Is the reported |
from panda3d.core import GraphicsEngine, GraphicsPipeSelection, WindowProperties, \
FrameBufferProperties, GraphicsPipe
engine = GraphicsEngine.get_global_ptr()
pipe = GraphicsPipeSelection.get_global_ptr().make_default_pipe()
win_prop = WindowProperties()
win_prop.fullscreen = True
win_prop.size = (1920, 1080)
#win_prop.size = (800, 600)
win = engine.make_output(pipe,
name = "window",
sort=0,
fb_prop = FrameBufferProperties(),
win_prop = win_prop,
flags = GraphicsPipe.BF_require_window)
print(pipe.display_width, pipe.display_height)
print(win.get_x_size(), win.get_y_size())
while not win.is_closed():
win.engine.render_frame() Output: 1920 1080
640 480 |
This was caused by the fix to #1469. Could you please test the new build and let me know whether there are still problems? http://buildbot.panda3d.org/downloads/5da013e2e9a991c993532cc6886c53e4c38bccc0/ |
Has anyone been able to test the changes? |
This fixed the problem for me, now my window creation code above gets the size right. Thank you. Output: 1920 1080
1920 1080 |
Description
getXSize()
andgetXSize()
return incorrect values if the PRC configuration containsfullscreen true
.Steps to Reproduce
Here is the short piece of code to shown the problem:
The code above prints
(640, 480)
.If
fullscreen false
the returned window size is correct.Everything worked fine with 1.10.13.post1 and Python 3.11.
Environment
The text was updated successfully, but these errors were encountered: