From 4b193b7f5c97efaf6d44619290d0c0a0fc9f7a43 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Tue, 11 Sep 2012 10:41:02 +0800 Subject: [PATCH] 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 Reviewed-by: Dave Parker Commit-Ready: Hung-Te Lin --- scripts/newbitmaps/images/Makefile | 1 + scripts/newbitmaps/images/build_images | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/newbitmaps/images/Makefile b/scripts/newbitmaps/images/Makefile index f14b7ccde9..4705e3cd22 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 a61d6d16fa..a133e7c841 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."