aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomedit/MPanel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/MPanel.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomedit/MPanel.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/MPanel.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/MPanel.java
index d5586ce3..8a7a3fd2 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/MPanel.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/MPanel.java
@@ -24,6 +24,8 @@ public class MPanel {
protected Color backgroundColor = new Color(0,0,0,0);
+ protected Rectangle lastAbsClip = new Rectangle(0,0,0,0);
+
@Getter(AccessLevel.PUBLIC)
protected boolean isFocused;
@@ -84,6 +86,7 @@ public class MPanel {
Rectangle absBound = bounds.getBounds();
absBound.setLocation(absBound.x + parentPoint.x, absBound.y + parentPoint.y);
Rectangle clip = determineClip(parentClip, absBound);
+ lastAbsClip = clip;
clip(resolution, clip.x, clip.y, clip.width, clip.height);
GL11.glPushAttrib(GL11.GL_SCISSOR_BIT);