Check if the insets calculation works with Swing #6

Closed
opened 4 years ago by gpe · 1 comments
gpe commented 4 years ago
Owner

I've got a feeling the current implementation might not, based on comments in the JOGL code.

If all components are AWT components, then the layer represents the Canvas itself and the windowLayer is its direct parent.

If the Canvas is inside one (or more) Swing component(s), I wonder if the windowLayer is actually the first AWT ancestor component? This would influence the insets calculation.

Playing around with this might be worthwhile.

I've got a feeling the current implementation might not, based on comments in the JOGL code. If all components are AWT components, then the layer represents the Canvas itself and the windowLayer is its direct parent. If the Canvas is inside one (or more) Swing component(s), I wonder if the windowLayer is actually the first AWT ancestor component? This would influence the insets calculation. Playing around with this might be worthwhile.
Poster
Owner

The current code works.

The current code works.
gpe closed this issue 3 years ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: openrs2/openrs2-natives#6
Loading…
There is no content yet.