tweaks for small screen

This commit is contained in:
eehouse111999 2020-02-07 16:34:41 -08:00
parent c50e85f34a
commit fe48a7c107
2 changed files with 4 additions and 4 deletions

View file

@ -139,10 +139,10 @@ formatRemText( XP_S16 nTilesLeft, const XP_Rect* rect, char* buf, char** lines )
{
if ( 1 == rect->height ) {
const char* fmt;
if ( rect->width < 15 ) {
if ( rect->width < 20 ) {
fmt = "%d";
} else {
fmt = "Rem: %.3d";
fmt = "Rem: %.2d";
}
*lines = buf;
sprintf( buf, fmt, nTilesLeft );

View file

@ -268,7 +268,7 @@ class Device():
self.setApp(self.args.UPGRADE_PCT)
self.checkScript()
self.launchCount += 1
args = [ self.script ]
args = [ self.script, '--close-stdin' ]
self.proc = subprocess.Popen(args, stdout = subprocess.DEVNULL,
stderr = subprocess.PIPE, universal_newlines = True)
self.pid = self.proc.pid
@ -396,7 +396,7 @@ def build_cmds(args):
COUNTER = 0
PLAT_PARMS = []
if not args.USE_GTK:
PLAT_PARMS += ['--curses', '--close-stdin']
PLAT_PARMS += ['--curses']
for GAME in range(1, args.NGAMES + 1):
peers = set()