diff options
-rw-r--r-- | mga-bg-res/NEWS | 3 | ||||
-rw-r--r-- | mga-bg-res/VERSION | 2 | ||||
-rwxr-xr-x | mga-bg-res/mga-bg-res.xinit | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/mga-bg-res/NEWS b/mga-bg-res/NEWS index 427bf45..ae9e665 100644 --- a/mga-bg-res/NEWS +++ b/mga-bg-res/NEWS @@ -1,3 +1,6 @@ +Version 0.5 (2015-03-05): +- xinit script: Adapt list of available resolutions to the new set. + Version 0.4 (2015-03-05): - xinit script: Handle resolutions that are not directly provided in mageia-theme but have the same aspect ratio as provided images diff --git a/mga-bg-res/VERSION b/mga-bg-res/VERSION index be58634..2eb3c4f 100644 --- a/mga-bg-res/VERSION +++ b/mga-bg-res/VERSION @@ -1 +1 @@ -0.3 +0.5 diff --git a/mga-bg-res/mga-bg-res.xinit b/mga-bg-res/mga-bg-res.xinit index 558b1cd..89aa97a 100755 --- a/mga-bg-res/mga-bg-res.xinit +++ b/mga-bg-res/mga-bg-res.xinit @@ -13,8 +13,8 @@ if [ $(readlink "$bgpath/default.jpg") != "$bgpath/Mageia-Default-$res.jpg" ]; t ratio=$((1000*$width/$height)) found=false - declare -A refRatios=( ["1250"]="1280x1024" ["1333"]="2560x1920" ["1600"]="1920x1200" - ["1667"]="800x480" ["1707"]="1024x600" ["1778"]="1920x1080" ) + declare -A refRatios=( ["1250"]="1280x1024" ["1333"]="1600x1200" ["1600"]="1920x1200" + ["1667"]="1280x768" ["1707"]="1024x600" ["1778"]="1920x1080" ) for key in "${!refRatios[@]}"; do if [ $(($ratio % $key)) -lt 25 -o $(($key % $ratio)) -lt 25 ]; then res=${refRatios[$key]} |