mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +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 ) {
|
if ( 1 == rect->height ) {
|
||||||
const char* fmt;
|
const char* fmt;
|
||||||
if ( rect->width < 15 ) {
|
if ( rect->width < 20 ) {
|
||||||
fmt = "%d";
|
fmt = "%d";
|
||||||
} else {
|
} else {
|
||||||
fmt = "Rem: %.3d";
|
fmt = "Rem: %.2d";
|
||||||
}
|
}
|
||||||
*lines = buf;
|
*lines = buf;
|
||||||
sprintf( buf, fmt, nTilesLeft );
|
sprintf( buf, fmt, nTilesLeft );
|
||||||
|
|
|
@ -268,7 +268,7 @@ class Device():
|
||||||
self.setApp(self.args.UPGRADE_PCT)
|
self.setApp(self.args.UPGRADE_PCT)
|
||||||
self.checkScript()
|
self.checkScript()
|
||||||
self.launchCount += 1
|
self.launchCount += 1
|
||||||
args = [ self.script ]
|
args = [ self.script, '--close-stdin' ]
|
||||||
self.proc = subprocess.Popen(args, stdout = subprocess.DEVNULL,
|
self.proc = subprocess.Popen(args, stdout = subprocess.DEVNULL,
|
||||||
stderr = subprocess.PIPE, universal_newlines = True)
|
stderr = subprocess.PIPE, universal_newlines = True)
|
||||||
self.pid = self.proc.pid
|
self.pid = self.proc.pid
|
||||||
|
@ -396,7 +396,7 @@ def build_cmds(args):
|
||||||
COUNTER = 0
|
COUNTER = 0
|
||||||
PLAT_PARMS = []
|
PLAT_PARMS = []
|
||||||
if not args.USE_GTK:
|
if not args.USE_GTK:
|
||||||
PLAT_PARMS += ['--curses', '--close-stdin']
|
PLAT_PARMS += ['--curses']
|
||||||
|
|
||||||
for GAME in range(1, args.NGAMES + 1):
|
for GAME in range(1, args.NGAMES + 1):
|
||||||
peers = set()
|
peers = set()
|
||||||
|
|
Loading…
Reference in a new issue