summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2005-08-23 12:39:04 +0000
committerFlorent Villard <warly@mandriva.com>2005-08-23 12:39:04 +0000
commitd24c9ce8bf5ec0adb5c91f9804cca3bba46ac248 (patch)
tree718e3195515c8a4fbc5403aaf13340a95e13b26a /perl-install
parentdf5d7aca0932bfe2822ffaa5a6bb181c7afb77ed (diff)
downloaddrakx-d24c9ce8bf5ec0adb5c91f9804cca3bba46ac248.tar
drakx-d24c9ce8bf5ec0adb5c91f9804cca3bba46ac248.tar.gz
drakx-d24c9ce8bf5ec0adb5c91f9804cca3bba46ac248.tar.bz2
drakx-d24c9ce8bf5ec0adb5c91f9804cca3bba46ac248.tar.xz
drakx-d24c9ce8bf5ec0adb5c91f9804cca3bba46ac248.zip
use the current theme name
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/Xconfig/resolution_and_depth.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm
index 8ae9bab7f..e8a4e5a89 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -232,11 +232,12 @@ sub set_default_background {
my $ratio = $resolution->{X} / $resolution->{Y};
my $dir = "$::prefix/usr/share/mdk/backgrounds";
+ my %theme = getVarsFromSh('/etc/sysconfig/bootsplash');
my @l =
sort {
$a->[1] <=> $b->[1] || $b->[2] <=> $a->[2] || $a->[1] <=> $b->[1];
} map {
- if (my ($X, $Y) = /^Mandriva-(\d+)x(\d+).png$/) {
+ if (my ($X, $Y) = /^$theme{THEME}-(\d+)x(\d+).png$/) {
[
$_,
int(abs($ratio - $X / $Y) * 100), #- we want the nearest ratio (precision .01)