diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-08-23 12:41:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-08-23 12:41:23 +0000 |
commit | 201a27bd864bf94e8692c8c2c0fee3b0eedb511c (patch) | |
tree | e392ccd4c6e12975ea89fdd3305aa1fa3a2d1bb6 | |
parent | 4009536b6c5bbcacf855eaaaa75a52f8f82a6f3c (diff) | |
download | drakx-201a27bd864bf94e8692c8c2c0fee3b0eedb511c.tar drakx-201a27bd864bf94e8692c8c2c0fee3b0eedb511c.tar.gz drakx-201a27bd864bf94e8692c8c2c0fee3b0eedb511c.tar.bz2 drakx-201a27bd864bf94e8692c8c2c0fee3b0eedb511c.tar.xz drakx-201a27bd864bf94e8692c8c2c0fee3b0eedb511c.zip |
be safer
-rw-r--r-- | perl-install/Xconfig/resolution_and_depth.pm | 2 |
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) |