-=-
Menu
Tournaments
Profile
Poll
Latest videos
Latest comments
2018-09-16: "Needless to jus..." -ThunDer
2018-09-16: "The log shows I..." -Vivando
2018-09-16: ""so I gues..." -King
2018-09-16: "On this log it ..." -Krzysiek
2018-09-15: "Safe to say tha..." -Jelly Jam
2018-09-15: "Could have been..." -Vivando
2018-09-12: "The playstyle o..." -HordY
2018-09-12: "Wp,jelly pro(co..." -FireRabbit
2018-09-12: "some dodgy ****..." -Ragnarok
2018-09-10: "Done!" -Kyro
Latest matches
flag [GpW] [09:05] CCflag
flag CX [11:07] -t3>flag
flag [GpW] [12:07] CXflag
flag CX [09:03] [GpW]flag
flag CX [10:05] [GpW]flag
flag [GpW] [09:08] CXflag
flag [GpW] [13:01] CCflag
flag [GpW] [10:03] -t3>flag
flag CX [07:05] [GpW]flag
flag CX [15:04] CCflag
Latest forum posts
By: King, in: Contest results! [JJnet Level Contest Season 13] « JJ2 related2018-09-11 23:23
Which players didn't have objective criteria in vo...
By: SirEmentaler, in: Contest results! [JJnet Level Contest Season 13] « JJ2 related2018-09-11 18:30
Good contest. Good entries. Good picks. Thanks ...
By: Toni, in: Contest results! [JJnet Level Contest Season 13] « JJ2 related2018-09-11 15:41
Yet again, not all of you had objective criteria i...
By: Anubis, in: Contest results! [JJnet Level Contest Season 13] « JJ2 related2018-09-11 15:29
@Toni It was a bit of a last minute vote. I believ...

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.