[Mod installer] Disable alpha

This commit is contained in:
Tran Khanh Duy 2020-11-07 15:06:24 +07:00 committed by GitHub
parent 33a2c42626
commit 7533611aeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,11 +89,12 @@ public class AWTCanvasView extends TextureView implements TextureView.SurfaceTex
attached = CallbackBridge.nativeAttachThreadToOther(true, MainActivity.isInputStackCall); attached = CallbackBridge.nativeAttachThreadToOther(true, MainActivity.isInputStackCall);
} else { } else {
int[] rgbArray = JREUtils.renderAWTScreenFrame(/* canvas, mWidth, mHeight */); int[] rgbArray = JREUtils.renderAWTScreenFrame(/* canvas, mWidth, mHeight */);
if (rgbArray == null) { if (rgbArray == null) {
drawing = false; drawing = false;
} else { } else {
canvas.drawBitmap(rgbArray, 0, mWidth, 0, 0, mWidth, mHeight, true, null); canvas.drawText("FPS", 50, 50, fpsPaint);
} canvas.drawBitmap(rgbArray, 0, mWidth, 0, 0, mWidth, mHeight, false, null);
}
} }
canvas.drawText("FPS: " + (Math.round(fps() * 10) / 10) + ", attached=" + attached + ", drawing=" + drawing, 50, 50, fpsPaint); canvas.drawText("FPS: " + (Math.round(fps() * 10) / 10) + ", attached=" + attached + ", drawing=" + drawing, 50, 50, fpsPaint);