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

Author Topic: I need help about the SFML window!  (Read 2041 times)

0 Members and 1 Guest are viewing this topic.

Tamas2020200

  • Newbie
  • *
  • Posts: 2
    • View Profile
I need help about the SFML window!
« on: October 07, 2023, 12:20:38 pm »
Hello everyone!
I really need help, i don't know if my problem is cummon or it's soo basic yet i don't know how to fix it, BUT
I need help becouse I want my game to be ran at Fullscreen and basicly, whatever screen size, now, how can i make it so nothing will "SNAP" to the screen's size? I mean imagine a square, when it's default screen size it's just a squre, but if i strech the screen a bit, it becomes a brick, now how can i make it not do that, maybe leave some black space where there is nothing on the screen...?
« Last Edit: October 07, 2023, 12:22:39 pm by Tamas2020200 »

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: I need help about the SFML window!
« Reply #1 on: October 07, 2023, 05:06:40 pm »
It sounds like you want to work with aspect ratios and I believe there is something on the SFML Wiki that can automatically "letter-box" your image (I presume this is what you are wanting).

Yes, here it is:
https://github.com/SFML/SFML/wiki/Source%3A-Letterbox-effect-using-a-view
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Tamas2020200

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: I need help about the SFML window!
« Reply #2 on: October 08, 2023, 10:28:03 am »
Thanks Hapax that's exactly what i wanted!   :D