Skip to content

Commit

Permalink
修复boat分辨率问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Tungstend committed Apr 18, 2022
1 parent 2440773 commit 363ee7c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int hei
MCOptionUtils.load(gameLaunchSetting.game_directory);
MCOptionUtils.set("overrideWidth", String.valueOf((int) (width * scaleFactor)));
MCOptionUtils.set("overrideHeight", String.valueOf((int) (height * scaleFactor)));
MCOptionUtils.set("fullscreen", "false");
MCOptionUtils.save(gameLaunchSetting.game_directory);

BoatActivity.setBoatNativeWindow(new Surface(surface));
Expand Down

1 comment on commit 363ee7c

@zhangjing-GitHub-Code
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

但是目前最新build (我自己弄的)(就这个363ee7c)
好像一开版本独立设置就会崩(可能是版本独立设置的默认字符串有亿点问题?)

Please sign in to comment.