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

Method drawBackground

forge-gui-mobile/src/forge/screens/FScreen.java:172–181  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

170 }
171
172 @Override
173 protected void drawBackground(Graphics g) {
174 if (Forge.isLandscapeMode() && getLandscapeBackdropScreen() != null) {
175 return; //don't draw background if this screen has a backdrop
176 }
177 float w = getWidth();
178 float h = getHeight();
179 g.drawImage(Forge.isMobileAdventureMode ? FSkinTexture.ADV_BG_TEXTURE : FSkinTexture.BG_TEXTURE, 0, 0, w, h);
180 g.fillRect(getTextureOverlayColor(), 0, 0, w, h);
181 }
182
183 public static abstract class Header extends FContainer {
184 public static FSkinColor getBtnPressedColor() {

Callers

nothing calls this directly

Calls 7

isLandscapeModeMethod · 0.95
fillRectMethod · 0.80
getWidthMethod · 0.65
getHeightMethod · 0.65
drawImageMethod · 0.45

Tested by

no test coverage detected