SFML community forums

Help => General => Topic started by: SuperV1234 on June 17, 2010, 02:52:17 pm

Title: Resize window 2x
Post by: SuperV1234 on June 17, 2010, 02:52:17 pm
Is there a way to resize a 640x480 window to 2x the size?
I just want it to be a graphical resize, no effect on gameplay whatsoever.

Think about pixel-art games that run at 320x240, but you can upscale them at 3x, 4x. That's what I'm looking for.
Title: Resize window 2x
Post by: Laurent on June 17, 2010, 03:41:15 pm
There's nothing particular to do, just resize your window and SFML will do the job.
Title: Resize window 2x
Post by: SuperV1234 on June 17, 2010, 10:48:09 pm
Great, it works fine :)

What if I need to display it at a widescreen resolution by adding black bars?
Title: Resize window 2x
Post by: Laurent on June 17, 2010, 10:54:26 pm
You can control the size (and thus the aspect ratio) using sf::View.