MCPcopy Create free account
hub / github.com/Card-Forge/forge / adjustHeightModifier

Method adjustHeightModifier

forge-gui-mobile/src/forge/Forge.java:575–586  ·  view source on GitHub ↗
(float DisplayW, float DisplayH)

Source from the content-addressed store, hash-verified

573 }
574
575 public static void adjustHeightModifier(float DisplayW, float DisplayH) {
576 if (isLandscapeMode()) {//TODO: Fullscreen support for Display without screen controls
577 float aspectratio = DisplayW / DisplayH;
578 if (aspectratio > 1.82f) {/* extra wide */
579 setHeightModifier(200.0f);
580 extrawide = "extrawide";
581 } else if (aspectratio > 1.7f) {/* wide */
582 setHeightModifier(100.0f);
583 extrawide = "wide";
584 }
585 }
586 }
587
588 public static void setForcedEnglishonCJKMissing() {
589 if (!forcedEnglishonCJKMissing) {

Callers 1

afterDbLoadedMethod · 0.95

Calls 2

isLandscapeModeMethod · 0.95
setHeightModifierMethod · 0.95

Tested by

no test coverage detected