SFML community forums

Help => Graphics => Topic started by: werdy666 on April 26, 2011, 04:15:41 pm

Title: Maximised Window Event Type???
Post by: werdy666 on April 26, 2011, 04:15:41 pm
Hi,

Just have been playing around with keeping my sprites the same size regardless of what the user changes the window size to. Works perfectly ok when i manually resize the window.

Problem is that when I hit maximise on the window it isn't recognised as a resize event.

Am I missing something? I have searched the forums and the docs for version 1.6 and 2.0 (currently using SFML 2.0)

Thanks

werdy666 :D
Title: Maximised Window Event Type???
Post by: Laurent on April 26, 2011, 04:22:27 pm
Which operating system?
Title: Maximised Window Event Type???
Post by: werdy666 on April 26, 2011, 06:15:15 pm
Windows 7 64bit.
Title: Maximised Window Event Type???
Post by: Laurent on April 26, 2011, 06:58:58 pm
Works for me on the same OS.

You should try the OpenGL example. If the 3D cube doesn't follow exactly the mouse anymore after resizing, and is stuck in the lower-left corner, then there's a bug in SFML. If everything's ok then you have a bug in your code.
Title: Maximised Window Event Type???
Post by: werdy666 on April 27, 2011, 05:39:23 pm
bug in my Code! :oops:

thanks for your help Laurent!