From cd2a80b75a79304a47397da7ec749018a32fe24d Mon Sep 17 00:00:00 2001 From: extio-de Date: Sun, 4 Oct 2026 09:27:48 +0200 Subject: [PATCH] fix(G2DBaseControlImpl): add FIXME comment regarding AWT component size handling --- .../renderer/g2d/control/impl/G2DBaseControlImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/de/extio/game_engine/renderer/g2d/control/impl/G2DBaseControlImpl.java b/src/main/java/de/extio/game_engine/renderer/g2d/control/impl/G2DBaseControlImpl.java index 90acf70..79b9fab 100644 --- a/src/main/java/de/extio/game_engine/renderer/g2d/control/impl/G2DBaseControlImpl.java +++ b/src/main/java/de/extio/game_engine/renderer/g2d/control/impl/G2DBaseControlImpl.java @@ -223,6 +223,9 @@ public abstract class G2DBaseControlImpl implements BaseControl { final var visibleArea = new Area2(ImmutableCoordI2.create(this.visibleAreaX, this.visibleAreaY), ImmutableCoordI2.create(this.visibleAreaWidth, this.visibleAreaHeight)); final var intersection = SpatialUtils2.intersectAreas(controlArea, visibleArea); if (intersection != null) { + + // FIXME: Although only the intersection is drawn, the underlying AWT component (to register clicks, etc.) is still the full size of the control for most controls. Only few controls handle resizing of the AWT component at the current time. + this.mainFrameGraphics.drawImage( this.bufferedImage, intersection.getPosition().getX(),