From 9647a3930a808963e22ce721aadeab5ae0edeb97 Mon Sep 17 00:00:00 2001 From: Donald Stewart Date: Sat, 4 May 2019 23:11:39 +0100 Subject: 7.0 - New artwork for MGA7 - Backgrounds: support for 3440x1440 added - mga-bg-res: support added for ultrawide - Extra-Backgrounds: MGA6 Background added --- mga-bg-res/NEWS | 4 ++++ mga-bg-res/mga-bg-res.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'mga-bg-res') diff --git a/mga-bg-res/NEWS b/mga-bg-res/NEWS index a815ce6..d875e1e 100644 --- a/mga-bg-res/NEWS +++ b/mga-bg-res/NEWS @@ -1,4 +1,8 @@ git version (follows mageia-theme versioning and releases): +Version 7.0 +- Add support for 3400x1440 ultrawide + +Version 6.5 - Merge versioning back into that of mageia-theme - Fix 16:9 reference resolution for Mageia 6 artwork (3840x2160) - Use monitor-edid directly instead of monitor-probe, as the latter falls diff --git a/mga-bg-res/mga-bg-res.sh b/mga-bg-res/mga-bg-res.sh index 888db1a..74a6371 100755 --- a/mga-bg-res/mga-bg-res.sh +++ b/mga-bg-res/mga-bg-res.sh @@ -29,7 +29,7 @@ if [ ! -e "$bgpath/$theme-$res.png" ]; then # Bash only does integer arithmetic, we multiply everything by 1000 to workaround this ratio=$((1000*$width/$height)) declare -A refRatios=( ["1250"]="1280x1024" ["1333"]="1600x1200" ["1600"]="1920x1200" - ["1667"]="1280x768" ["1707"]="1024x600" ["1778"]="3840x2160" ) + ["1667"]="1280x768" ["1707"]="1024x600" ["1778"]="3840x2160" ["2389"]="3440x1440" ) for key in "${!refRatios[@]}"; do if [ $(($ratio % $key)) -lt 25 -o $(($key % $ratio)) -lt 25 ]; then res=${refRatios[$key]} -- cgit v1.2.1