bootanimation: do not scale anything
Force it to always be 1080x2400.
Change-Id: I108338e5e91f6e742d07296e9c43d62191efa022
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/bootanimation/Android.mk b/bootanimation/Android.mk
index 8750624..e2e3732 100644
--- a/bootanimation/Android.mk
+++ b/bootanimation/Android.mk
@@ -22,21 +22,7 @@
@rm -rf $(dir $@)
@mkdir -p $(INTERMEDIATES)
$(hide) tar xfp vendor/shiftos/bootanimation/bootanimation.tar -C $(INTERMEDIATES)
- $(hide) if [ $(TARGET_SCREEN_HEIGHT) -lt $(TARGET_SCREEN_WIDTH) ]; then \
- IMAGEWIDTH=$(TARGET_SCREEN_HEIGHT); \
- else \
- IMAGEWIDTH=$(TARGET_SCREEN_WIDTH); \
- fi; \
- IMAGESCALEWIDTH=$$IMAGEWIDTH; \
- IMAGESCALEHEIGHT=$$(expr $$IMAGESCALEWIDTH / 3); \
- if [ "$(TARGET_BOOTANIMATION_HALF_RES)" = "true" ]; then \
- IMAGEWIDTH="$$(expr "$$IMAGEWIDTH" / 2)"; \
- fi; \
- IMAGEHEIGHT=$$(expr $$IMAGEWIDTH / 3); \
- RESOLUTION="$$IMAGEWIDTH"x"$$IMAGEHEIGHT"; \
- prebuilts/tools-lineage/${HOST_OS}-x86/bin/mogrify -resize $$RESOLUTION -colors 256 $(INTERMEDIATES)/*/*.png; \
- echo "$$IMAGESCALEWIDTH $$IMAGESCALEHEIGHT 60" > $(INTERMEDIATES)/desc.txt; \
- cat vendor/shiftos/bootanimation/desc.txt >> $(INTERMEDIATES)/desc.txt
+ $(hide) cat vendor/shiftos/bootanimation/desc.txt >> $(INTERMEDIATES)/desc.txt
$(hide) $(SOONG_ZIP) -L 0 -o $@ -C $(INTERMEDIATES) -D $(INTERMEDIATES)
ifeq ($(TARGET_BOOTANIMATION),)
diff --git a/bootanimation/desc.txt b/bootanimation/desc.txt
index b9613f1..8777725 100644
--- a/bootanimation/desc.txt
+++ b/bootanimation/desc.txt
@@ -1,3 +1,4 @@
+1080 2400 1
c 1 1 part0
c 1 1 part1
c 0 0 part2