From 5e66c99233523e9d4c814d836498fc6a32f8464c Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Thu, 24 Jul 2014 13:32:15 +0300 Subject: [PATCH] Fix immersive mode & gl resize - Pass raw width & height to internal C/C++ code, so that resizes propagate - Fixes input button & image missalignment on 4.4+ --- shell/android/src/com/reicast/emulator/emu/GL2JNIView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/android/src/com/reicast/emulator/emu/GL2JNIView.java b/shell/android/src/com/reicast/emulator/emu/GL2JNIView.java index ae64512ad..c0eae8084 100644 --- a/shell/android/src/com/reicast/emulator/emu/GL2JNIView.java +++ b/shell/android/src/com/reicast/emulator/emu/GL2JNIView.java @@ -564,7 +564,8 @@ public class GL2JNIView extends GLSurfaceView public void onSurfaceChanged(GL10 gl,int width,int height) { - JNIdc.rendinit(sWidth,sHeight); + gl.glViewport(0, 0, width, height); + JNIdc.rendinit(width,height); } public void onSurfaceCreated(GL10 gl,EGLConfig config)