-=-
Menu
Tournaments
Profile
Poll
Latest videos
Latest comments
2017-10-22: "Gauntlet is onl..." -MasterSven
2017-10-22: "Throw elmsuper ..." -Jelly Jam
2017-10-22: "WW is relativel..." -KRSplatinum
2017-10-22: "Or Epitome/ww/b..." -MasterSven
2017-10-22: "bblair/je???you..." -KRSplatinum
2017-10-22: "No bblair, no l..." -Jelly Jam
2017-10-21: "No Urbs, no win..." -MasterSven
2017-10-21: "Haha good job M..." -Slaz
2017-10-21: "haha, well play..." -[GpW]Urbs
2017-10-20: "CDF was on the ..." -Slaz
Latest matches
flag [CDF] [10:04] [GpW]flag
flag [GpW] [07:05] [CDF]flag
flag CX [09:02] -t3>flag
flag CC [13:06] [GpW]flag
flag [GpW] [06:03] [CDF]flag
flag CX [18:00] [GpW]flag
flag -t3> [07:06] [GpW]flag
flag -t3> [03:02] CXflag
flag CX [08:00] -t3>flag
flag -t3> [11:04] [GpW]flag
Latest forum posts
By: Jelly Jam, in: Who is the best Serbian player?!? « JJ2 related2017-11-20 03:18
lol welcome back xd
By: Ahmo, in: Who is the best Serbian player?!? « JJ2 related2017-11-20 01:43
Hordy Anyday !! also Arte with radar was hard to ...
By: DanZeal, in: 'Facing Worlds' Is Still The Best Multiplayer Map... « JJ2 related2017-11-19 20:13
:)
By: KRSplatinum, in: 'Facing Worlds' Is Still The Best Multiplayer Map... « JJ2 related2017-11-14 02:17
I forgot, the difference is that on JJ2 Facing Wor...

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.