LWJGLX / lwjgl3-awt

AWT support for LWJGL3
MIT License
115 stars 26 forks source link

correct dsi coordinates on macOS #34

Closed tisoft closed 3 years ago

tisoft commented 3 years ago

The JAWTDrawingSurfaceInfo has coordinates (0/0) if the AWTGLCanvas is inside a JSplitPane (and probably others). Correct the coordinates by converting (0/0) in Canvas coordinates to RootPane coordinates.

Fixes #33

tisoft commented 3 years ago

@httpdigest Could we get this merged? 😄

httpdigest commented 3 years ago

Oh, of course. Sorry, didn't notice it. Merged.

tisoft commented 3 years ago

Thanks!