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

Author Topic: Lock window resize, and software resize  (Read 1118 times)

0 Members and 1 Guest are viewing this topic.

Kosmos

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Lock window resize, and software resize
« on: December 23, 2012, 01:33:28 pm »
Hello,

I want to lock the user from resizing the window, and do the resizing from the code.

Changing the resolution with a videomode will just make the window have more/less pixels which I don't want.

What I want to do is scale it from my program, instead of automatically when resizing the window with the mouse.

Thanks,
Kosmos.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10998
    • View Profile
    • development blog
    • Email
AW: Lock window resize, and software resize
« Reply #1 on: December 23, 2012, 03:09:52 pm »
Don't specify sf::Style::Resize and use window.setSize to change the size.
Also check the documentation. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything