Skip to content

Commit

Permalink
Fix build on arm
Browse files Browse the repository at this point in the history
Patch by:	Robert Clausecker <fuz@fuz.su>
  • Loading branch information
AMDmi3 authored and Gargaj committed Aug 13, 2022
1 parent fe03c1d commit 440eb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -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 ) );
}
Expand Down

1 comment on commit 440eb5e

@artkiver
Copy link

@artkiver artkiver commented on 440eb5e Sep 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dangit, here I was thinking this commit message implied that Bonzomatic was already happily running on ARM/aarch64/Apple
Screen Shot 2022-09-26 at 5 44 23 AM
Silicon/M1/M2/etc. yet after running a build on macOS 12.6 just now I am being prompted to install Rosetta after double clicking on the Bonzomatic.app cmake generates, so I am guessing that I may need to look into whatever tweaks may be worthwhile to get this to not need Rosetta 2 (Intel instruction HAL for Apple Silicon Macs). Should've guessed it wouldn't just have been a one line change anyway, drat!

Please sign in to comment.