diff options
author | Dave Parker <dparker@chromium.org> | 2012-08-16 16:55:18 -0700 |
---|---|---|
committer | Dave Parker <dparker@chromium.org> | 2012-08-17 12:01:59 -0700 |
commit | 71a19634bbdde3161a3c9918e6114b9dec17fded (patch) | |
tree | daebe0cb240b2fdda9f1e3eea77e566908f73a6a | |
parent | 0c950224ded0759089fd172411a304b0c502eda7 (diff) | |
download | vboot-71a19634bbdde3161a3c9918e6114b9dec17fded.tar.gz |
Kiev: Resize firmware bitmaps to 1280x1024.
BUG=chrome-os-partner:8510
TEST=Run 'make' in newbitmaps directory. Verify bitmaps are displayed
correctly. Note: coreboot firmware must specify
CONFIG_FRAMEBUFFER_VESA_MODE=0x11a
in the config.<BOARD> file.
Change-Id: I3356521e2ab936d2f483326f68a5dcf157b6ae48
Reviewed-on: https://gerrit.chromium.org/gerrit/30634
Reviewed-by: Dave Parker <dparker@chromium.org>
Tested-by: Dave Parker <dparker@chromium.org>
-rwxr-xr-x | scripts/newbitmaps/images/build_images | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/newbitmaps/images/build_images b/scripts/newbitmaps/images/build_images index db1c4880..2a5cc1d0 100755 --- a/scripts/newbitmaps/images/build_images +++ b/scripts/newbitmaps/images/build_images @@ -11,6 +11,15 @@ BACKGROUND_COLOR=white # The only file that uses different scaling parameter. BACKGROUND_IMAGE=Background_white.bmp +# Currently we use image resources originally designed for 1366x768, and +# re-scale to different aspects on demand. +SCALE_16x9_800x600="59%x78%" +SCALE_16x9_1024x768="75%x100%" +SCALE_16x9_1280x1024="94%%x133%" + +IMAGE_SCALING="$SCALE_16x9_1280x1024" +BACKGROUND_SIZE="1280x1024" + die() { echo "ERROR: $*" >&2 exit 1 @@ -63,17 +72,10 @@ main() { local scale_param="" background_scale_param="" local base locale X - # Currently we use image resources originally designed for 1366x768, and - # re-scale to different aspects on demand. case "$profile" in x86 ) - # The image size with x86 UEFI BIOS (also applies to coreboot) is always - # 800x600, which is stretched to fill the entire screen. With previous - # devices the physical screen size was either 1280x800 (16:10) or 1366x768 - # (16:9). There's not a lot of difference between those, so let's just - # assume 16:9 for future platforms to make things simpler. - scale_param="-scale 59%x78%" - background_scale_param="-scale 800x600!" + scale_param="-scale $IMAGE_SCALING" + background_scale_param="-scale ${BACKGROUND_SIZE}!" ;; arm ) # On ARM platforms, we need to provide a bitmap with full size. |