-=-
Menu
Tournaments
Profile
Poll
Latest videos
Latest comments
2018-12-12: "semi does the t..." -Loon
2018-12-12: "Well played GpW..." -[GpW]Urbs
2018-12-12: "CC is back in c..." -ThunDer
2018-12-12: "first ladder in..." -GrytmasternCC
2018-12-11: " ..." -Jelly Jam
2018-12-11: "Wow!!! ..." -Antix
2018-12-11: "The videos of t..." -CzSonic
2018-12-11: " ..." -ThunDer
2018-12-09: "muh boys" -[GpW]Urbs
2018-12-09: "dont pick daybr..." -A7med
Latest matches
flag [GpW] [08:07] CXflag
flag CX [11:03] [GpW]flag
flag CX [09:01] [GpW]flag
flag CC [07:05] [GpW]flag
flag CX [20:01] [GpW]flag
flag [GpW] [05:05] -t3>flag
flag -t3> [13:01] [GpW]flag
flag [GpW] [09:04] [CDF]flag
flag [GpW] [07:00] [CDF]flag
flag [CDF] [06:05] [GpW]flag
Latest forum posts
By: KRSplatinum, in: Ridiculous spam « Site suggestions2018-11-29 16:05
Hi! As you may notice, the JJnet forums and com...
By: Grytolle, in: Chico « JJ2 related2018-11-18 22:56
The funny animation that iku injected on the websi...
By: iku, in: Chico « JJ2 related2018-11-17 12:47
It appears that the original link to get Chico ha...

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.