Skip to content
Snippets Groups Projects
Commit af1309c3 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'ree/games-fixes' into 'master'

Ree/games fixes

See merge request !230
parents 6d46ef9d 8a061325
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,11 @@
?>
<?xjs if (settings.ftelnet_menubar) { ?>
<style>.fTelnetConnectButton { display : none; }</style>
<?xjs } else { ?>
<style>.fTelnetStatusBar { display : none; }</style>
<?xjs } ?>
<a name="fTelnet"></a>
<div id="fTelnetContainer" class="fTelnetContainer" style="margin-bottom:1em;"></div>
......@@ -86,8 +90,15 @@
$(a).text(xx.n);
$(a).click(function (evt) {
if (xx.c.toLowerCase() === 'msweeper') {
// Resize client to support a level 5 game of minesweeper
fTelnet.Crt.SetScreenSize(80, 35);
// Resize client to support a level 5 game of minesweeper, if necessary
if (fTelnet.Crt.ScreenRows < 35) {
// Switch to 80x35, which fits a full level 5.0 game
fTelnet.Crt.SetScreenSize(80, 35);
// Call SetFont, which will switch to a smaller font if the new 35 row
// client is too tall for the browser window
fTelnet.Crt.SetFont(fTelnet.Crt.Font.Name);
}
}
launchXtrn(xx.c);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment