SFML community forums

Help => Window => Topic started by: Andrew on May 01, 2014, 04:54:20 am

Title: SFML Window Overlap Bug?
Post by: Andrew on May 01, 2014, 04:54:20 am
I think I may have found a window overlap bug.

I'm on Windows 8 using c++ Win32 in Visual Studio 2012. I have two SFML windows that I have created, and I display, poll the next event, and clear for both windows in a loop, all in the same thread.

Here's how I can initiate the bug:
Here's some illustrations:

(1-4)
 ________
|    ___     |
|   |     |    |
|   |___|    |
|________|

(5)
 ________
|               |   ___
|               |  |     |
|               |  |___|
|________|

(6-10)
 ________
|           __|_
|          |     |
|          |___|
|________|

Did I do something wrong, or have I truly discovered a bug? How can I fix it, or can you fix it please? :)

Also, another note: this is not just about the windows' creations; it happens over and over again if the process is repeated without restarting the program.

Thanks,

- Andrew
Title: Re: SFML Window Overlap Bug?
Post by: zsbzsb on May 01, 2014, 04:57:49 am
Sounds like another side affect of the hurried "fix" that was released in 2.1 that was supposed to fix a few other issues.. Try compiling SFML from source and see if that fixes the issue.  ;)
Title: Re: SFML Window Overlap Bug?
Post by: Andrew on May 01, 2014, 05:17:25 am
I would if Github would let me download it...
Title: Re: SFML Window Overlap Bug?
Post by: zsbzsb on May 01, 2014, 02:37:28 pm
I would if Github would let me download it...

What is the problem?
Title: Re: SFML Window Overlap Bug?
Post by: Andrew on May 01, 2014, 04:47:46 pm
Every attempt I make to download it through Github by zip or git does not even start most of the time and finish sometimes.
Title: Re: SFML Window Overlap Bug?
Post by: eXpl0it3r on May 02, 2014, 10:06:41 am
Sounds like an issue on your end. Works fine for everyone else...
Title: Re: SFML Window Overlap Bug?
Post by: Laurent on May 02, 2014, 10:10:32 am
There was apparently an issue with archives, but they already fixed it 10 days ago.

https://twitter.com/githubstatus
Title: Re: SFML Window Overlap Bug?
Post by: Andrew on May 02, 2014, 08:49:42 pm
Well, I downloaded it. I didn't realize I'd have to CMake it. I've never had success with CMake...
Title: Re: SFML Window Overlap Bug?
Post by: zsbzsb on May 02, 2014, 08:52:24 pm
If you can't follow this (http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php) then maybe you should find something else to pass your time. Because its way too complicated to compile SFML  :P
Title: Re: SFML Window Overlap Bug?
Post by: Andrew on May 02, 2014, 09:28:32 pm
Yep, I got errors at the configuration process.

It amazes me how anyone else gets these things to work given that I have a standard installation and I followed the instructions. Oh well. I'll wait until 2.2 or whatever.
Title: Re: SFML Window Overlap Bug?
Post by: Jesper Juhl on May 02, 2014, 09:35:11 pm
Yep, I got errors at the configuration process.

It amazes me how anyone else gets these things to work given that I have a standard installation and I followed the instructions. Oh well. I'll wait until 2.2 or whatever.

1. If you don't quote the exact errors you get then no one can help you.

2. In my experience SFML is *extremely* easy to build, as long as you have the proper prerequisite tools and libraries in place it's usually as simple as running  cmake ; make ; make install  and you are all done in less than 5 minutes.
But let's see those error messages so we can actually try and help.