AOSP10 TWRP Merge: fix conflicts and update libraries needed
This allows flame to boot TWRP. Still will need to work on super partition for vendor and system access. The plan will be to cherry-pick any updates to android-9.0 through gerrit.twrp.me to this branch as a WIP.
This commit is contained in:
+3
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2013 bigbiff/Dees_Troy TeamWin
|
||||
Copyright 2012 to 2020 TeamWin
|
||||
This file is part of TWRP/TeamWin Recovery Project.
|
||||
|
||||
TWRP is free software: you can redistribute it and/or modify
|
||||
@@ -22,6 +22,7 @@ extern "C" {
|
||||
#include "../twcommon.h"
|
||||
}
|
||||
#include "../minuitwrp/minui.h"
|
||||
#include "../minuitwrp/truetype.hpp"
|
||||
|
||||
#include "rapidxml.hpp"
|
||||
#include "objects.hpp"
|
||||
@@ -633,7 +634,7 @@ bool GUIScrollList::AddLines(std::vector<std::string>* origText, std::vector<std
|
||||
if (origColor)
|
||||
curr_color = origColor->at(i);
|
||||
for (;;) {
|
||||
size_t line_char_width = gr_ttf_maxExW(curr_line.c_str(), mFont->GetResource(), mRenderW);
|
||||
size_t line_char_width = twrpTruetype::gr_ttf_maxExW(curr_line.c_str(), mFont->GetResource(), mRenderW);
|
||||
if (line_char_width < curr_line.size()) {
|
||||
//string left = curr_line.substr(0, line_char_width);
|
||||
size_t wrap_pos = curr_line.find_last_of(" ,./:-_;", line_char_width - 1);
|
||||
|
||||
Reference in New Issue
Block a user