Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
78f227f1
Unverified
Commit
78f227f1
authored
Feb 22, 2024
by
Oleksandr Karpovich
Committed by
GitHub
Feb 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix loadOpenGLLibrary for web targets (#875)
parent
a82cbd79
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
OsArch.kt
skiko/src/commonMain/kotlin/org/jetbrains/skiko/OsArch.kt
+1
-0
Actuals.js.kt
...o/src/jsWasmMain/kotlin/org/jetbrains/skiko/Actuals.js.kt
+5
-1
OpenGLLibrary.native.kt
...veMain/kotlin/org/jetbrains/skiko/OpenGLLibrary.native.kt
+0
-0
No files found.
skiko/src/commonMain/kotlin/org/jetbrains/skiko/OsArch.kt
View file @
78f227f1
...
@@ -43,6 +43,7 @@ enum class KotlinBackend(val id: String) {
...
@@ -43,6 +43,7 @@ enum class KotlinBackend(val id: String) {
fun
isNotJs
()
=
this
!=
JS
fun
isNotJs
()
=
this
!=
JS
}
}
// Note: it returns the host OS for web apps too
expect
val
hostOs
:
OS
expect
val
hostOs
:
OS
expect
val
hostArch
:
Arch
expect
val
hostArch
:
Arch
...
...
skiko/src/jsWasmMain/kotlin/org/jetbrains/skiko/Actuals.js.kt
View file @
78f227f1
...
@@ -31,4 +31,8 @@ internal actual fun getCursorById(id: PredefinedCursorsId): Cursor =
...
@@ -31,4 +31,8 @@ internal actual fun getCursorById(id: PredefinedCursorsId): Cursor =
PredefinedCursorsId
.
CROSSHAIR
->
"crosshair"
PredefinedCursorsId
.
CROSSHAIR
->
"crosshair"
PredefinedCursorsId
.
HAND
->
"pointer"
PredefinedCursorsId
.
HAND
->
"pointer"
PredefinedCursorsId
.
TEXT
->
"text"
PredefinedCursorsId
.
TEXT
->
"text"
}
}
\ No newline at end of file
internal
actual
fun
loadOpenGLLibrary
()
{
// Nothing to do here
}
\ No newline at end of file
skiko/src/native
JsMain/kotlin/org/jetbrains/skiko/OpenGLLibrary.nativeJs
.kt
→
skiko/src/native
Main/kotlin/org/jetbrains/skiko/OpenGLLibrary.native
.kt
View file @
78f227f1
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment