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

Author Topic: Wrong size of window  (Read 2681 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32502
    • View Profile
    • SFML's website
    • Email
Wrong size of window
« Reply #15 on: June 05, 2011, 04:42:41 pm »
I think there's nothing you can do, nobody can create a smaller window.

You can try to remove the maximize and minimize buttons (if you want a 100 pixels wide window you probably don't want users to be able to resize it anyway, right?), and maybe the OS will allow the window to be smaller.
Laurent Gomila - SFML developer

reDo

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Wrong size of window
« Reply #16 on: June 05, 2011, 05:39:24 pm »
Yes, you are right, thanks for all

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Wrong size of window
« Reply #17 on: June 05, 2011, 06:06:30 pm »
Remove the border ? (sf::Style::None)
SFML / OS X developer

reDo

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Wrong size of window
« Reply #18 on: June 05, 2011, 07:54:35 pm »
Yes, I did it and it works, only difference is I used 0 instead of None, thanks Laurent and Hiura a little bit too  :)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Wrong size of window
« Reply #19 on: June 05, 2011, 08:08:58 pm »
Well, 0 might work now but
- this is not guaranteed in the future (if Laurent change the order of the enum for example);
- None is much more readable/meaningful/...
 :wink:
SFML / OS X developer

reDo

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Wrong size of window
« Reply #20 on: June 05, 2011, 08:38:42 pm »
Yes, you are right so I use None like you mentioned :D

 

anything