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

Method draw

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

Source from the content-addressed store, hash-verified

153 }
154
155 @Override
156 public void draw(Graphics g) {
157 if (Forge.isLandscapeMode() && getLeft() == 0) { //check that left is 0 to avoid infinite loop
158 //draw landscape backdrop first if needed
159 FScreen backdrop = getLandscapeBackdropScreen();
160 if (backdrop != null) {
161 g.draw(backdrop);
162 //temporarily shift into position for drawing in front of backdrop
163 setLeft(Forge.getScreenWidth() - getWidth());
164 g.draw(this);
165 setLeft(0);
166 return;
167 }
168 }
169 super.draw(g);
170 }
171
172 @Override
173 protected void drawBackground(Graphics g) {

Callers

nothing calls this directly

Calls 7

isLandscapeModeMethod · 0.95
getScreenWidthMethod · 0.95
getLeftMethod · 0.80
setLeftMethod · 0.80
drawMethod · 0.65
getWidthMethod · 0.65

Tested by

no test coverage detected