DivestOS/Patches/LineageOS-16.0/android_bootable_recovery/0002-Remove_Logo.patch
Tad a9f445ad47 16.0: add land and santoni
Signed-off-by: Tad <tad@spotco.us>
2021-10-28 19:07:31 -04:00

50 lines
1.3 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Tue, 24 Apr 2018 12:13:43 -0400
Subject: [PATCH] Remove logo
Change-Id: Ibf900e6ceb8a571b4770f6df7efeea1d97b6b477
---
screen_ui.cpp | 8 --------
screen_ui.h | 1 -
2 files changed, 9 deletions(-)
diff --git a/screen_ui.cpp b/screen_ui.cpp
index 56fa314f..adc6d2b8 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -581,13 +581,6 @@ void ScreenRecoveryUI::draw_header_locked(int& y) {
}
y += v_unit;
- // Draw logo
- icon = logo_image;
- icon_w = gr_get_width(icon);
- icon_h = gr_get_height(icon);
- icon_x = kMarginWidth + (gr_fb_width() - icon_w) / 2;
- icon_y = y + ((v_unit * 4) - icon_h) / 2;
- gr_blit(icon, 0, 0, icon_w, icon_h, icon_x, icon_y);
y += v_unit * 4;
y += v_unit * 1; // Margin
@@ -906,7 +899,6 @@ bool ScreenRecoveryUI::Init(const std::string& locale) {
// Set up the locale info.
SetLocale(locale);
- LoadBitmap("logo_image", &logo_image);
LoadBitmap("ic_back", &ic_back);
LoadBitmap("ic_back_sel", &ic_back_sel);
diff --git a/screen_ui.h b/screen_ui.h
index ea1f5c03..6fa29b39 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -207,7 +207,6 @@ class ScreenRecoveryUI : public RecoveryUI {
// The layout to use.
int layout_;
- GRSurface* logo_image;
GRSurface* ic_back;
GRSurface* ic_back_sel;