client: adjust resolution; server: set DISPLAY if unset

This commit is contained in:
Iris Lightshard 2021-10-15 00:00:46 -06:00
parent 8cb70363a3
commit d3a0940612
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
2 changed files with 7 additions and 3 deletions

View file

@ -2,6 +2,10 @@
PORT=5460
if [ -z "${DISPLAY}"]; then
export DISPLAY=:0
fi
case $1 in
start)
./xrxs -s xrxs & sleep 1

View file

@ -69,6 +69,8 @@
#02cd .System/g DEO2
#02cb .System/b DEO2
#0200 .Screen/width DEO2
#0110 .Screen/height DEO2
( initialize state )
#00 .ticker STZ
#00 .state STZ
@ -591,7 +593,7 @@ RTN
.Mouse/y DEI2 #0028 SUB2 8// TOB .list-top LDZ ADD .select-index STZ
.Mouse/state DEI #00 EQU ,&no-click JCN
.select-index LDZ .ncarts GTH ,&no-click JCN
.select-index LDZ .ncarts LDZ GTH ,&no-click JCN
.state LDZ INC .state STZ
;set-button-state-by-key .Controller/vector DEO2
;set-button-state-by-mouse .Mouse/vector DEO2
@ -949,8 +951,6 @@ RTN
@no-instr BRK
( constants )
@spritesheet "xrxs.chr 00
@fontsheet "zz.chr 00
@carts-file "n/carts 00
@slot-file "n/slot 00
@ctl-file "n/ctl 00