Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55dbc25

Browse files
committed
If the surface changed, but the size remain the same, for the expose to refresh the view (kivy)
1 parent bbe3d39 commit 55dbc25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,9 @@ public boolean createSurface() {
892892
nativeResizeEvent(mWidth, mHeight);
893893
else
894894
nativeResize(mWidth, mHeight);
895+
896+
// If the size didn't change, kivy might no rerender the scene. Force it.
897+
nativeExpose();
895898
}
896899

897900
return true;

0 commit comments

Comments
 (0)