WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@robertkirkman
Copy link
Member

@robertkirkman
Copy link
Member Author

It works, but, there are several problems, unfortunately I don't understand yet how to fix all of the problems.

Here are the problems:

  • How can I send the preference change to the renderer thread while it is running?
    • Should I try to pass JNIEnv to the renderer thread?
  • How to apply the preference change to the LorieView without force stopping Termux:X11 and opening it again?
    • It kind of does when switching from Nearest to Bilinear, but switching from Bilinear to Nearest does not seem to work without force stopping Termux:X11 and opening it again, so something is wrong and additional code is needed.

@twaik
Copy link
Member

twaik commented Dec 4, 2025

Try to store preference value in some int variable and change it in runtime by calling a jni-exported function from java side. IIRC there was a function triggered by preference change you can place it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add "Nearest Neighbor" interpolation option for Scaled Resolution mode

2 participants