[Mod installer] Try to attach JNI thread anyways

This commit is contained in:
khanhduytran0 committed 2020-11-05 18:03:39 +07:00
1 parent 189793020c
commit 58bb44f89a
3 files changed
+8 -2

No files matched your search

@@ -91,7 +91,7 @@ public class AWTCanvasView extends TextureView implements TextureView.SurfaceTex
if (attached) {
drawing = JREUtils.renderAWTScreenFrame(canvas, mWidth, mHeight);
}
canvas.drawText("FPS: " + fps() + ", attached=" + attached + ", drawing=" + drawing, 50, 50, fpsPaint);
canvas.drawText("FPS: " + (Math.round(fps() * 10) / 10) + ", attached=" + attached + ", drawing=" + drawing, 50, 50, fpsPaint);
mSurface.unlockCanvasAndPost(canvas);
} catch (Throwable th) {