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 - Legion

Pages: [1]
1
I've also noticed that if the size of the RenderWindow is set too high that the window simply does not show up.
This. This was the problem.

My laptop's resolution was set at 1366 x 768. And the window's height was set at 900, which is way higher than my screen resolution. This caused indeed my window to disappear. I could also use the flag sf::Style::Fullscreen while instantiating the RenderWindow to "fix" the problem, but that wouldn't be too good of a solution. What I found odd was that I connected my laptop to my TV, which had 1920 x 1080 in resolution, and that still didn't work.

Anyhow, I got it solved due to Senzin's and eXpl0it3r's earlier experience with the same issue, so thanks, guys. I also wanna thank you others too, because I did learn something new in addition to solving my problem. :) And it would be indeed kinda nice to throw some kind of warning if the RenderWindow's width/height were to exceed the screen's resolution. Maybe you could add a warning message in the debug/console window? It wouldn't exactly be the best solution, seeing how not all people use it, but I'm putting it out there.

2
SFML-version: 2.0 (release candidate) / dynamic linking
OS: Windows 7 64-bit
Graphics card: ATI Mobillity Radeon HD 4650 / fully updated drivers
IDE: Microsoft Visual Studio 2010 Ultimate

Screenshot of my problem

So the problem is that the window refuses to show itself. The closest thing I get to it, is that when I hover my mouse over the program icon on the taskbar/toolbar (see above screenshot), I get some sort of "preview" of the window, but that's it. I find this ordeal odd, because it was working all fine for a while, then it just refused to one day. I'd love to share some code with you, but I'm not sure what to give you, because the whole project is big. The odd thing is that this problem does not occur on my stationary computer, but only on my laptop. The details for my stationary are:

SFML-version: 2.0 (release candidate) / dynamic linking
OS: Windows 7 64-bit
Graphics card: ATI Radeon HD 5770 (Sapphire/PCPartner) / fully updated drivers
IDE: Microsoft Visual Studio 2010 Ultimate

So... any ideas, guys? Also if you need more information, please let me know.

Thank you in advance for your answers.

3
General / [ANSWERED] Window not showing up (perhaps ATI-related)
« on: December 04, 2011, 09:12:22 pm »
Oh, that's a bummer. I guess I'll have to wait patiently for 2.0 then. Thank you very much for the fast answer.

4
General / [ANSWERED] Window not showing up (perhaps ATI-related)
« on: December 04, 2011, 08:54:14 pm »
I've been fiddling around with the SFML 1.6 tutorial and I can't seem to get the graphics window up at all. Here's the code:

Code: [Select]
#include <SFML\Window.hpp>
#include <iostream>
using namespace std;
using namespace sf;

int main(int argc, char** argv) {

Window App(VideoMode(800, 600, 32), "SFML Window");

bool Running = true;

while (Running) {

App.Display();
}

system("pause");

return EXIT_SUCCESS;
}


I've also searched the forum for similar issues and found out that it might be related to that I have an ATI-graphics card. I've read through these threads:
http://www.sfml-dev.org/forum/viewtopic.php?t=3438&postdays=0&postorder=asc&start=0
http://www.sfml-dev.org/forum/viewtopic.php?p=27975#27975
http://www.sfml-dev.org/forum/viewtopic.php?p=35670&sid=ee1412d75ec51b220f4c7a5d78336d5c

Perhaps the problem is related to this? The threads are fairly old as well, but has the bug been fixed yet? Or perhaps I have some errors in my code?

Pages: [1]