-=-
Menu
Tournaments
Profile
Poll
Latest videos
Latest comments
2018-06-22: "Commentators ne..." -MasterSven
2018-06-13: "Done ..." -Kyro
2018-06-13: "You forgot to p..." -Jelly Jam
2018-06-10: "yeah sure we're..." -Ragnarok
2018-06-07: "cc in" -Loon
2018-06-06: "GpW in!" -Jelly Jam
2018-06-06: "-t3> in!" -Vivando
2018-06-04: "it is though of..." -Loon
2018-06-04: "Isn't already o..." -Jelly Jam
2018-06-04: "exciting match,..." -Loon
Latest matches
flag CC [18:11] [GpW]flag
flag [CDF] [05:22] [GpW]flag
flag not [04:08] -t3>flag
flag [GpW] [07:04] [CDF]flag
flag [GpW] [05:04] [CDF]flag
flag not [08:05] -t3>flag
flag [CDF] [06:02] [GpW]flag
flag -t3> [08:05] notflag
flag [GpW] [07:07] [CDF]flag
flag CC [09:06] [GpW]flag
Latest forum posts
By: Toni, in: [NT 2018] News « National Tournament2018-06-23 17:14
The first game is scheduled! [img]http://jazzj...
By: Toni, in: [NT 2018] National Tournament Starts « National Tournament2018-06-14 21:58
Hello everyone! We are pleased to announce the ...
By: King, in: [NT 2018] Groups « National Tournament2018-06-08 23:33
[quote="Toni"] and 4 more maps chosen by team cap...

JJnet's forum

«Latest posts» «Latest threads» «Search» «User CP»

View post
GLaDOS
avatar
Return to thread2012-05-27 10:44
Assuming you will still be using SFML: it should be fairly easy to just scale down the window size/screen resolution outside out the server range if necessary and just have SFML automatically apply the sf::View size, scaling down the window content.
Basically, if your system's maximum is 640x480 for some reason, but the server requires 1280x960, your client will use 640x480 as its fullscreen resolution/window size, but display the game content zoomed out x2. SFML should actually do this automatically, depending on the way you use sf::View. For clamping the view to lower maximum resolutions, I suggest either scaling the game up to fill the screen, or using sf::View::​setViewport() to create a "frame" around the game as JJ2 does now.