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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - malyninja

Pages: [1]
1
General / Re: Black rectangle on top of window (sometimes)
« on: February 03, 2018, 09:25:37 pm »
My gpu: GeForce GTX 765M
Gpu driver: NVIDIA Driver v. 384.111
Window manager: Mutter (Muffin) ? cinamon 3.6.7

more info:
https://gist.github.com/anonymous/354ff802401fa00520ae6c0ee0e51bce

And now, when I launched my application, this black rectangle was on bottom of thhe screen. I thought that is because the application doesn't detect my screen resolution. I checked and this is output:
1920x1080
1918x1023
code:
std::cout << desktop.width << "x" << desktop.height << std::endl;
std::cout << window.getSize().x << "x" << window.getSize().y << std::endl

But even when the problem does not occu, output is the same.

2
General / Black rectangle on top of window (sometimes)
« on: February 03, 2018, 05:20:12 pm »
Hi everyone.
I've recently started with SFML and I've got a problem. I was looking for solving but it hard to describe what exactly I want to find. When I set the window to fullscreen, sometimes there is black rectangle on top of window. It looks like the screen has been moved down, because I can't insert even a cursor in this area.

Printscreens:
what I want:

what it looks like if problem occurs:


This problem occurs randomly, sometimes few times in a row, sometimes it hard to catch the problem.

There is no matter how the code looks like, but every time started like this:
sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
sf::RenderWindow window(desktop, "SFML window", sf::Style::Fullscreen);
window.setMouseCursorVisible(false);
window.setFramerateLimit(60);

I don't know if it is problem connected with the SFML or with my system/screen drivers. I use Linux Mint and I installed library by apt-get install.

Pages: [1]