Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Штенгауэр Никита Дмитриевич committed Dec 4, 2023
2 parents 73f01a8 + 3f0b327 commit 6239005
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ internal class GLFXUtils {
}

fun getDPI(node: Node) =
if(PlatformUtils.os == OS.MacOS) {
if(node.scene == null || node.scene.window == null)
1.0
else if(PlatformUtils.os == OS.MacOS) {
val window = node.scene.window
IOSurface.nGetDisplayDPI(window.x + window.width / 2, window.y + window.height / 2)
} else
node.scene?.window?.outputScaleY ?: 1.0
node.scene.window.outputScaleY

val Texture.D3DTextureResource: Long
get() = Class.forName("com.sun.prism.d3d.D3DTexture")
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion modules/lwjgl/src/examples/kotlin/LWJGL.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ExampleApp: Application(){
}

private fun createGLCanvasInstance(): GLCanvas {
val canvas = GLCanvas(LWJGL_MODULE, msaa = 0, fxaa = true, profile = GLProfile.Core, async = true, interopType = GLInteropType.NVDXInterop)
val canvas = GLCanvas(LWJGL_MODULE, msaa = 0, fxaa = true, profile = GLProfile.Core, async = true)
canvas.animator = GLCanvasAnimator(60.0)

val renderExample = ExampleScene()
Expand Down

0 comments on commit 6239005

Please sign in to comment.