From 5cb541b5e4726b1f6fb7ba92eef67bec96c2a7d1 Mon Sep 17 00:00:00 2001 From: shagr4th Date: Mon, 19 Dec 2016 19:34:28 +0100 Subject: [PATCH] Better to start the view when the native lib is loaded --- app/src/main/AndroidManifest.xml | 2 +- app/src/main/java/org/ab/x48/HPView.java | 36 ++++++++++++------------ app/src/main/java/org/ab/x48/X48.java | 6 ++-- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b538274..765e129 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + package="org.ab.x48" android:installLocation="auto" android:versionCode="71" android:versionName="1.71"> 2) c = 2; setContrast(0.5 * c); - //x48.flipScreen(); } private void setContrast(double contrast_factor) { @@ -912,24 +911,25 @@ public class HPView extends SurfaceView implements SurfaceHolder.Callback, Runna lcd_menuicon_x = lcd_pos_x_end - menuIcon.getWidth(); } - - c.drawBitmap(backBuffer, 0, 0, null); - if (data != null) - mainScreen.copyPixelsFromBuffer(ShortBuffer.wrap(data)); - c.drawBitmap(mainScreen, matrixScreen, screenPaint); - for(int i=0;i