Merge branch upstream/master while introducing compile errors and reverting parts of Android changes, video BPP options are gone
This commit is contained in:
@@ -218,7 +218,7 @@ void TextfileWindow::SetupScrollbars(bool force_reflow)
|
||||
/* virtual */ void TextfileWindow::SetFontNames(FreeTypeSettings *settings, const char *font_name, const void *os_data)
|
||||
{
|
||||
#if defined(WITH_FREETYPE) || defined(_WIN32) || defined(WITH_COCOA)
|
||||
strecpy(settings->mono.font, font_name, lastof(settings->mono.font));
|
||||
settings->mono.font = font_name;
|
||||
settings->mono.os_handle = os_data;
|
||||
#endif
|
||||
}
|
||||
@@ -375,7 +375,7 @@ static void Xunzip(byte **bufp, size_t *sizep)
|
||||
this->text = ReallocT(this->text, filesize + 1);
|
||||
this->text[filesize] = '\0';
|
||||
|
||||
/* Replace tabs and line feeds with a space since str_validate removes those. */
|
||||
/* Replace tabs and line feeds with a space since StrMakeValidInPlace removes those. */
|
||||
for (char *p = this->text; *p != '\0'; p++) {
|
||||
if (*p == '\t' || *p == '\r') *p = ' ';
|
||||
}
|
||||
@@ -384,7 +384,7 @@ static void Xunzip(byte **bufp, size_t *sizep)
|
||||
char *p = this->text + (strncmp(u8"\ufeff", this->text, 3) == 0 ? 3 : 0);
|
||||
|
||||
/* Make sure the string is a valid UTF-8 sequence. */
|
||||
str_validate(p, this->text + filesize, SVS_REPLACE_WITH_QUESTION_MARK | SVS_ALLOW_NEWLINE);
|
||||
StrMakeValidInPlace(p, this->text + filesize, SVS_REPLACE_WITH_QUESTION_MARK | SVS_ALLOW_NEWLINE);
|
||||
|
||||
/* Split the string on newlines. */
|
||||
int row = 0;
|
||||
|
||||
Reference in New Issue
Block a user