mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-27 19:53:42 +00:00
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>
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
# this occasional need.
|
# this occasional need.
|
||||||
|
|
||||||
TARGETS=std n1366usb n1366usb2 s800 s1024 s1024usb s1024usb2
|
TARGETS=std n1366usb n1366usb2 s800 s1024 s1024usb s1024usb2
|
||||||
|
TARGETS+=s1280a8x5 s1280x850a8x5
|
||||||
|
|
||||||
# To generate all locales, make from top level.
|
# To generate all locales, make from top level.
|
||||||
LOCALES=en
|
LOCALES=en
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ main() {
|
|||||||
local scale_param="" background_scale_param="" replace_files=""
|
local scale_param="" background_scale_param="" replace_files=""
|
||||||
local base locale X
|
local base locale X
|
||||||
|
|
||||||
|
# TODO(hungte) Derive and calculate profile params automatically.
|
||||||
|
|
||||||
# Currently we use image resources originally designed for 1366x768, and
|
# Currently we use image resources originally designed for 1366x768, and
|
||||||
# re-scale to different aspects on demand.
|
# re-scale to different aspects on demand.
|
||||||
case "$profile" in
|
case "$profile" in
|
||||||
@@ -124,7 +126,18 @@ main() {
|
|||||||
replace_files="insert=insert_sd_usb2"
|
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."
|
die "Sorry, unknown profile $profile."
|
||||||
|
|||||||
Reference in New Issue
Block a user