summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/Xconfig/resolution_and_depth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm
index 2faebe5b6..b8a10695d 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -237,7 +237,7 @@ sub set_default_background {
sort {
$a->[1] <=> $b->[1] || $b->[2] <=> $a->[2] || $a->[3] <=> $b->[3];
} map {
- if (my ($X, $Y) = /^$theme{THEME}-(\d+)x(\d+).png$/) {
+ if (my ($X, $Y) = /^\Q$theme{THEME}\E-(\d+)x(\d+).png$/) {
[
$_,
int(abs($ratio - $X / $Y) * 100), #- we want the nearest ratio (precision .01)