<div dir="ltr">Michael,<div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 3, 2017 at 8:21 PM, Michael Rueger <span dir="ltr"><<a href="mailto:lists@andience.co.nz" target="_blank">lists@andience.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>Hi all,<br>
<br>
so continuing on with the below mentioned hack I got a version running that correctly displays colors (although not the image desktop image) and accepts mouse/touch input.<br>
<br>
If you hit the back button the next touch will be interpreted as right button click.<br>
<br>
There is still something wrong with the display endianess, have to swap the bytes for display.<br>
<br>
Display updates are done directly from the VM async via SurfaceView, avoids some of the bit copying.<br>
<br>
Events are also directly sent from Android and added to the queue, but still polled from the queue within the VM.<br>
<br>
Not handling rotation or backgrounding yet, needs a bit more work.<br>
<br>
Please feel free to take a look at the code in <a href="https://github.com/mrueger42/st-android" rel="noreferrer" target="_blank">https://github.com/mrueger42/s<wbr>t-android</a> (development branch), project CogDroid.<br></blockquote><div><br></div><div>Congratulations and thank you!  Are you planning to fold the vm changes back into opensmalltalk/vm?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers<br>
<br>
Michael<br>
<br>
<br>
On 26/06/17 7:51 PM, Michael Rueger wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
after a bit more digging it seems that the getRedzoneSize (sqUnixMain.c) magic doesn't work as expected in Android if it is called on a non-UI thread.<br>
The behavior isn't consistent, it simply crashes or gives back impossibly large (negative) numbers.<br>
<br>
Just for proof of concept I hard coded a value that I got from executing getRedzoneSize on the main thread and the VM now runs (I see regular calls to invalidate display in the log).<br>
</blockquote>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>