Skip to content

Commit

Permalink
Fix font rendering bugs and include zarchive
Browse files Browse the repository at this point in the history
  • Loading branch information
Crementif committed Mar 27, 2024
1 parent 0ccfe73 commit 80b58dc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

# Executables
*.exe
!/dist/zarchive.exe
*.out
*.app

Expand Down
4 changes: 2 additions & 2 deletions .idea/runConfigurations/Run_Debug_Using_Wii_U.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/runConfigurations/Run_Release_Using_Wii_U.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/zarchive.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions source/utils/log_freetype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static void FreetypeAddLine(const char *line) {

if (newLines == NUM_LINES) {
for (uint32_t i=0; i<NUM_LINES-1; i++) {
memcpy(queueBuffer[i], queueBuffer[i + 1], LINE_LENGTH);
wmemcpy(queueBuffer[i], queueBuffer[i + 1], LINE_LENGTH);
}

size_t wideLength = std::mbstowcs(queueBuffer[newLines - 1], line, length);
Expand All @@ -86,7 +86,7 @@ static void FreetypeAddLine(const wchar_t *line) {

if (newLines == NUM_LINES) {
for (uint32_t i=0; i<NUM_LINES-1; i++) {
memcpy(queueBuffer[i], queueBuffer[i + 1], LINE_LENGTH);
wmemcpy(queueBuffer[i], queueBuffer[i + 1], LINE_LENGTH);
}

wmemcpy(queueBuffer[newLines - 1], line, length);
Expand Down

0 comments on commit 80b58dc

Please sign in to comment.