Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED] Black screen in fullscreen mode when updating windows 10  (Read 3097 times)

0 Members and 1 Guest are viewing this topic.

Carlitox

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
I updated windows 10 and now i cannot see my game in fullscreen mode. If i keep pressed the windows button + M  on the keyboard  I see the game in fullscreen mode without the black screen.
« Last Edit: August 17, 2016, 06:36:47 pm by Carlitox »

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Black screen in fullscreen mode when updating windows 10
« Reply #1 on: August 16, 2016, 10:31:56 am »
what version of SFML ?

what video card and drivers ?

Carlitox

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Black screen in fullscreen mode when updating windows 10
« Reply #2 on: August 16, 2016, 06:08:23 pm »
what version of SFML ?

what video card and drivers ?

The sfml version is 2.3.2 and video card us NVidia Geforce 920M

Still having the problem but only when changing from windowed to fullscreen, if i create the window in fullscreen mode on the application first execution it works.

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Black screen in fullscreen mode when updating windows 10
« Reply #3 on: August 16, 2016, 11:04:40 pm »
if i create the window in fullscreen mode on the application first execution it works.
What are you doing instead? Can you show code?

Have you made sure that the size of the window the you are creating for fullscreen is one of the available fullscreen modes?
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Carlitox

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Black screen in fullscreen mode when updating windows 10
« Reply #4 on: August 17, 2016, 06:36:30 pm »
In window.pollevent(event) where i check keys i was using a "if" instead of "while" loop. Problem solved but strange that happened when updating Windows.

« Last Edit: August 17, 2016, 06:38:07 pm by Carlitox »

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: [SOLVED] Black screen in fullscreen mode when updating windows 10
« Reply #5 on: August 17, 2016, 07:38:33 pm »
Although I found if for events to be recommended in Windows programming, especially games in Direct X, it makes no sense since it can only process one event per frame.

If you were using an if and a while (you say that you use an if just for keys) then the while would be wiping the queue.

It seems best practice to poll and process the entire event queue in one go - once per frame.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*