Skip to content
Browse files

Fixing osmos-demo font and urbanterror resolution

  • Loading branch information...
1 parent 078a7dc commit ba677c310b58d55f893df1a1bb0a8eb7fe48e35f @svenstaro committed Apr 28, 2011
Showing with 7 additions and 4 deletions.
  1. +1 −0 games/osmos-demo/init.sh
  2. +1 −1 games/osmos-demo/start.sh
  3. +5 −3 games/urbanterror/init.sh
View
1 games/osmos-demo/init.sh
@@ -0,0 +1 @@
+sudo cp /usr/share/fonts/TTF/Vera.ttf /opt/Osmos-demo/Fonts/FortuneCity.ttf
View
2 games/osmos-demo/start.sh
@@ -1,2 +1,2 @@
cd /opt/games/osmos-demo
-zenity --info --text "You are about to see the license for this game.\nYou may not play the game if you do not agree to the license.\nWhen you are done reading, please press capital \"Q\" and decide whether you agree to the license." && xterm -e less addons/eula.txt && zenity --question --text "Do you accept this license?" && osmos-demo
+zenity --info --text "You are about to see the license for this game.\nYou may not play the game if you do not agree to the license.\nWhen you are done reading, please press \"<b>q</b>\" and decide whether you agree to the license." && xterm -e less addons/eula.txt && zenity --question --text "Do you accept this license?" && osmos-demo
View
8 games/urbanterror/init.sh
@@ -1,4 +1,6 @@
mkdir -p /home/gamer/.urbanterror/q3ut4/
-echo 'seta r_mode "-1"
-seta r_customwidth "1280"
-seta r_customheight "1024"' > /home/gamer/.urbanterror/q3ut4/autoexec.cfg
+xres=$(xrandr -q | grep \* | sed -e "s/^[ \t]*//" -e "s/\([0-9]*x[0-9]*\).*/\1/" | cut -d'x' -f1)
+yres=$(xrandr -q | grep \* | sed -e "s/^[ \t]*//" -e "s/\([0-9]*x[0-9]*\).*/\1/" | cut -d'x' -f2)
+echo "seta r_mode \"-1\"
+seta r_customwidth \"$xres\"
+seta r_customheight \"$yres\"" > /home/gamer/.urbanterror/q3ut4/autoexec.cfg

0 comments on commit ba677c3

Please sign in to comment.
Something went wrong with that request. Please try again.