mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
use configdata for font height, width
This commit is contained in:
@@ -54,8 +54,8 @@ public class TransitionScreen extends FContainer {
|
|||||||
matchTransition = enterMatch;
|
matchTransition = enterMatch;
|
||||||
if (matchTransition) {
|
if (matchTransition) {
|
||||||
float fontScale = GuiBase.isAndroid() ? 14f : 10f;
|
float fontScale = GuiBase.isAndroid() ? 14f : 10f;
|
||||||
float screenW = Forge.isLandscapeMode() ? Forge.getScreenWidth() : Forge.getScreenHeight();
|
float screenW = Forge.isLandscapeMode() ? Config.instance().getConfigData().screenWidth : Config.instance().getConfigData().screenHeight;
|
||||||
float screenH = Forge.isLandscapeMode() ? Forge.getScreenHeight() : Forge.getScreenWidth();
|
float screenH = Forge.isLandscapeMode() ? Config.instance().getConfigData().screenHeight : Config.instance().getConfigData().screenWidth;
|
||||||
font = Controls.getBitmapFont("default", fontScale/(screenW/screenH));
|
font = Controls.getBitmapFont("default", fontScale/(screenW/screenH));
|
||||||
} else {
|
} else {
|
||||||
font = Controls.getBitmapFont("default");
|
font = Controls.getBitmapFont("default");
|
||||||
|
|||||||
Reference in New Issue
Block a user