Skip to content

Commit 5b92831

Browse files
committed
merge the bitmap conversion part from pgs4a.
1 parent c3b8419 commit 5b92831

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/src/org/renpy/android/SDLSurfaceView.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,19 @@
2323
import javax.microedition.khronos.egl.EGLContext;
2424
import javax.microedition.khronos.egl.EGLDisplay;
2525
import javax.microedition.khronos.egl.EGLSurface;
26-
import javax.microedition.khronos.opengles.GL;
2726
import javax.microedition.khronos.opengles.GL10;
2827
import android.opengl.GLES20;
2928
import android.opengl.Matrix;
3029

3130
import android.app.Activity;
3231
import android.content.Context;
3332
import android.content.pm.ActivityInfo;
34-
import android.util.AttributeSet;
3533
import android.util.Log;
3634
import android.view.SurfaceHolder;
3735
import android.view.SurfaceView;
3836
import android.opengl.GLSurfaceView;
3937
import android.view.MotionEvent;
4038
import android.view.KeyEvent;
41-
import android.os.Build;
4239
import android.os.PowerManager;
4340

4441
import java.io.IOException;
@@ -631,6 +628,7 @@ private void waitForStart() {
631628
Bitmap bitmap = null;
632629
try {
633630
bitmap = BitmapFactory.decodeStream(is);
631+
bitmap = bitmap.copy(Bitmap.Config.ARGB_8888, false);
634632
} finally {
635633
try {
636634
is.close();

0 commit comments

Comments
 (0)