mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
tweaks for small screen
This commit is contained in:
parent
c50e85f34a
commit
fe48a7c107
2 changed files with 4 additions and 4 deletions
|
@ -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 );
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue