Opened 10 years ago

Closed 9 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:
Has a Patch: no 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 Changed 10 years ago by bga

Description: modified (diff)

comment:2 Changed 10 years ago by jackburton

Status: newassigned

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

comment:3 Changed 10 years ago by bga

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

comment:4 Changed 10 years ago by kaliber

Cc: grzegorz.dabrowski@… added

comment:5 Changed 10 years ago by jackburton

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 Changed 9 years ago by jackburton

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

comment:7 Changed 9 years ago by jackburton

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

comment:8 Changed 9 years ago by jackburton

Resolution: fixed
Status: in-progressclosed

Fixed in hrev35959.

Note: See TracTickets for help on using tickets.