Opened 15 years ago

Closed 15 years ago

#4456 closed bug (fixed)

BDirectWindow::SetFullscreen() does not work as expected with hidden window.

Reported by: bga Owned by: jackburton
Priority: normal Milestone: R1
Component: Kits/Game Kit Version: R1/pre-alpha1
Keywords: Cc: grzegorz.dabrowski@…
Blocked By: Blocking:
Platform: All

Description (last modified by bga)

If you construct a BDirectWindow and calls SetFullscreen() on it before calling Show() by the first time and then call Show() the window will not be resized to fit the entire screen. I would expect that the SetFullscreen() call would resize the window and set its position even if the window is not showing yet and that when Show() is called it would be taking the entire screen as expected.

Change History (8)

comment:1 by bga, 15 years ago

Description: modified (diff)

comment:2 by jackburton, 15 years ago

Status: newassigned

I'll have a look. Don't think I can do this in time with the alpha1 release, though.

comment:3 by bga, 15 years ago

No worries. this can be worked around (and I did it in SDL). Of course eventually fixing it is a good thing. :)

comment:4 by kaliber, 15 years ago

Cc: grzegorz.dabrowski@… added

comment:5 by jackburton, 15 years ago

This happens because when ServerWindow::_ResizeToFullScreen() is called, Window::Screen() returns NULL. At the moment I wouldn't know where to fix this in a nice way, other than calling ServerWindow::_ResizeToFullScreen() again in Desktop::_ShowWindow().

comment:6 by jackburton, 15 years ago

Owner: changed from jackburton to nobody
Status: in-progressassigned

comment:7 by jackburton, 15 years ago

Owner: changed from nobody to jackburton
Status: assignedin-progress

comment:8 by jackburton, 15 years ago

Resolution: fixed
Status: in-progressclosed

Fixed in hrev35959.

Note: See TracTickets for help on using tickets.