summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parker <dparker@chromium.org>2012-08-16 16:40:26 -0700
committerGerrit <chrome-bot@google.com>2012-08-16 18:45:21 -0700
commit0868f8f3b7aa40ba0eda3d38b16162bb2bb96bf1 (patch)
tree47fc1642574e0fb5bd93bdc48b38f11ae8bcdf27
parent5eb7cdba0e4671d412415743f48b87172d6bba91 (diff)
downloadvboot-0868f8f3b7aa40ba0eda3d38b16162bb2bb96bf1.tar.gz
Fix vertical placement of bmp images on firmware screens.
BUG=chromium-os:33608 TEST=Run 'make' in newbitmaps directory to generate new bmpblock. Run on DUT. Observe spacing in the footer section is closer together. Change-Id: I96987e827fd395f13244dbc58db600de5dc30958 Reviewed-on: https://gerrit.chromium.org/gerrit/30610 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Commit-Ready: Dave Parker <dparker@chromium.org> Tested-by: Dave Parker <dparker@chromium.org>
-rwxr-xr-xscripts/newbitmaps/images/make_default_yaml16
1 files changed, 5 insertions, 11 deletions
diff --git a/scripts/newbitmaps/images/make_default_yaml b/scripts/newbitmaps/images/make_default_yaml
index 216cc0f5..caf0684b 100755
--- a/scripts/newbitmaps/images/make_default_yaml
+++ b/scripts/newbitmaps/images/make_default_yaml
@@ -155,33 +155,27 @@ add_centered_below() {
local width
local height
local x
- local y
-
- height=$(get_max_height $images)
- y=$(expr $cur_y + $height)
width=$(total_width $images)
x=$(expr $cur_x - $width / 2)
- add_images $x $y $images
+ add_images $x $cur_y $images
}
# This adds a list of images and updates the insert location
-# below the new images with a padding of $xpad.
+# below the new images with a padding of $ypad.
insert_centered_below() {
local images=$@
local width
local height
local x
- local y
-
- height=$(get_max_height $images)
- y=$(expr $cur_y + $height)
width=$(total_width $images)
x=$(expr $cur_x - $width / 2)
- add_images $x $y $images
+ add_images $x $cur_y $images
+
+ height=$(get_max_height $images)
move_pos_down $(expr $height + $ypad)
}