mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Fix border for header on certain screens
This commit is contained in:
@@ -213,8 +213,8 @@ public abstract class FScreen extends FContainer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawOverlay(Graphics g) {
|
public void drawOverlay(Graphics g) {
|
||||||
if (Forge.isLandscapeMode()) {
|
if (Forge.isLandscapeMode() && getWidth() < Forge.getCurrentScreen().getWidth()) {
|
||||||
//in landscape mode, draw left border for header
|
//in landscape mode, draw left border for sidebar if needed
|
||||||
g.drawLine(LINE_THICKNESS, LINE_COLOR, 0, 0, 0, getHeight());
|
g.drawLine(LINE_THICKNESS, LINE_COLOR, 0, 0, 0, getHeight());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user