Skip to content

Commit 137bfbf

Browse files
committed
fix size of presplash, was incorrectly displayed at 50% of its initial size.
1 parent 0b6e822 commit 137bfbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,8 @@ private void waitForStart() {
652652
GLES20.glViewport(0, 0, mWidth, mHeight);
653653

654654
if (bitmap != null) {
655-
float mx = ((float)mWidth / bitmap.getWidth());
656-
float my = ((float)mHeight / bitmap.getHeight());
655+
float mx = ((float)mWidth / bitmap.getWidth()) / 2.0f;
656+
float my = ((float)mHeight / bitmap.getHeight()) / 2.0f;
657657
Matrix.orthoM(mProjMatrix, 0, -mx, mx, my, -my, 0, 10);
658658
int value = bitmap.getPixel(0, 0);
659659
Color color = new Color();

0 commit comments

Comments
 (0)