(Graphics g)
| 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) { |
nothing calls this directly
no test coverage detected