mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 14:51:51 -04:00
Update AWTCanvasView.java
This commit is contained in:
parent
7533611aeb
commit
27c0f009a1
@ -80,7 +80,7 @@ public class AWTCanvasView extends TextureView implements TextureView.SurfaceTex
|
||||
Canvas canvas;
|
||||
mSurface = new Surface(getSurfaceTexture());
|
||||
|
||||
while (!mIsDestroyed && mSurface.isValid()) {
|
||||
while (!mIsDestroyed) {
|
||||
try {
|
||||
canvas = mSurface.lockCanvas(null);
|
||||
canvas.drawRGB(0, 0, 0);
|
||||
@ -92,8 +92,8 @@ public class AWTCanvasView extends TextureView implements TextureView.SurfaceTex
|
||||
if (rgbArray == null) {
|
||||
drawing = false;
|
||||
} else {
|
||||
canvas.drawText("FPS", 50, 50, fpsPaint);
|
||||
canvas.drawBitmap(rgbArray, 0, mWidth, 0, 0, mWidth, mHeight, false, null);
|
||||
// canvas.drawText("FPS", 50, 50, fpsPaint);
|
||||
canvas.drawBitmap(rgbArray, 0, mWidth, 0, 0, mWidth, mHeight, true, null);
|
||||
}
|
||||
}
|
||||
canvas.drawText("FPS: " + (Math.round(fps() * 10) / 10) + ", attached=" + attached + ", drawing=" + drawing, 50, 50, fpsPaint);
|
||||
|
Loading…
x
Reference in New Issue
Block a user