git: a811d270e825 - main - graphics/bonzomatic: fix build on arm*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Aug 2022 12:29:23 UTC
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=a811d270e8259c51e78878a2f04f962555f9cf90 commit a811d270e8259c51e78878a2f04f962555f9cf90 Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2022-08-12 12:23:12 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2022-08-12 12:23:50 +0000 graphics/bonzomatic: fix build on arm* PR: 265405 Submitted by: fuz@fuz.su --- graphics/bonzomatic/files/patch-src_main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/graphics/bonzomatic/files/patch-src_main.cpp b/graphics/bonzomatic/files/patch-src_main.cpp new file mode 100644 index 000000000000..92fc12ac2280 --- /dev/null +++ b/graphics/bonzomatic/files/patch-src_main.cpp @@ -0,0 +1,11 @@ +--- src/main.cpp.orig 2022-07-08 20:07:06 UTC ++++ src/main.cpp +@@ -503,7 +503,7 @@ int main( int argc, const char * argv[] ) + if ( !consumed && Renderer::keyEventBuffer[ i ].character ) + { + char utf8[ 5 ] = { 0,0,0,0,0 }; +- wchar_t utf16[ 2 ] = { Renderer::keyEventBuffer[ i ].character, 0 }; ++ wchar_t utf16[ 2 ] = { static_cast<wchar_t>(Renderer::keyEventBuffer[ i ].character), 0 }; + Scintilla::UTF8FromUTF16( utf16, 1, utf8, 4 * sizeof( char ) ); + mShaderEditor.AddCharUTF( utf8, (unsigned int) strlen( utf8 ) ); + }