summaryrefslogtreecommitdiff
path: root/include/JSystem/J2DGraph
diff options
context:
space:
mode:
Diffstat (limited to 'include/JSystem/J2DGraph')
-rw-r--r--include/JSystem/J2DGraph/J2DPane.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/JSystem/J2DGraph/J2DPane.h b/include/JSystem/J2DGraph/J2DPane.h
index 81b2e28c..646c7ce3 100644
--- a/include/JSystem/J2DGraph/J2DPane.h
+++ b/include/JSystem/J2DGraph/J2DPane.h
@@ -54,13 +54,9 @@ public:
virtual void move(f32 x, f32 y);
virtual void add(f32 x, f32 y);
- // fakematch, this fake inline is only needed by the J2DPane::resize call inside of J2DWindow::resize
- f32 resize__getMinX() const { return mBounds.i.x; }
virtual void resize(f32 w, f32 h) {
- f32 x = resize__getMinX();
- x += w;
- mBounds.f.x = x;
- mBounds.f.y = mBounds.i.y + h;
+ JGeometry::TVec2<f32> size(w, h);
+ mBounds.setSize(size);
}
virtual bool setConnectParent(bool connected) {
mIsConnectParent = 0;