diff options
author | Hung-Te Lin <hungte@chromium.org> | 2012-09-11 10:41:02 +0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-09-11 19:22:36 -0700 |
commit | 4b193b7f5c97efaf6d44619290d0c0a0fc9f7a43 (patch) | |
tree | 542088d09e98f20dd3fb5bd22e1960945a7df248 | |
parent | 599565b4dda72de679a7fe6556a8a72292c927eb (diff) | |
download | vboot-4b193b7f5c97efaf6d44619290d0c0a0fc9f7a43.tar.gz |
newbitmaps: Add 1280x* with AR=8x5 profiles
For larger panels, we want to support 1280x* profiles.
BRANCH=none
BUG=chrome-os-partner:12896
TEST=make # all profiles generated.
Change-Id: I5b6729e4335bc0ade3948151e766c02ab937435d
Reviewed-on: https://gerrit.chromium.org/gerrit/32892
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Dave Parker <dparker@chromium.org>
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
-rw-r--r-- | scripts/newbitmaps/images/Makefile | 1 | ||||
-rwxr-xr-x | scripts/newbitmaps/images/build_images | 15 |
2 files changed, 15 insertions, 1 deletions
diff --git a/scripts/newbitmaps/images/Makefile b/scripts/newbitmaps/images/Makefile index f14b7ccd..4705e3cd 100644 --- a/scripts/newbitmaps/images/Makefile +++ b/scripts/newbitmaps/images/Makefile @@ -11,6 +11,7 @@ # this occasional need. TARGETS=std n1366usb n1366usb2 s800 s1024 s1024usb s1024usb2 +TARGETS+=s1280a8x5 s1280x850a8x5 # To generate all locales, make from top level. LOCALES=en diff --git a/scripts/newbitmaps/images/build_images b/scripts/newbitmaps/images/build_images index a61d6d16..a133e7c8 100755 --- a/scripts/newbitmaps/images/build_images +++ b/scripts/newbitmaps/images/build_images @@ -66,6 +66,8 @@ main() { local scale_param="" background_scale_param="" replace_files="" local base locale X + # TODO(hungte) Derive and calculate profile params automatically. + # Currently we use image resources originally designed for 1366x768, and # re-scale to different aspects on demand. case "$profile" in @@ -124,7 +126,18 @@ main() { replace_files="insert=insert_sd_usb2" ;; - # TODO(hungte) Add 1280x1024 (0x11A) profiles. + s1280a8x5 ) + # Similar to s1024, using VESA graphics mode 1280x1024 (0x011A), and + # adjusted for aspect ratio 8x5 panels. + background_scale_param="-scale 1280x1024!" + scale_param="-scale 94%x119%" # 119% = 133% * (1.6 / 1.78) + ;; + + s1280x850a8x5 ) + # Similar to s1280a8x5, using graphics mode 1280x850. + background_scale_param="-scale 1280x850!" + scale_param="-scale 94%x99%" # 99% = 110% * (1.6 / 1.78) + ;; * ) die "Sorry, unknown profile $profile." |