Bump versions

This commit is contained in:
Carlos Ballesteros Velasco
2020-05-03 08:23:24 +02:00
parent d6ad1a5d57
commit 2ca07886f9
6 changed files with 16 additions and 12 deletions

View File

@@ -2,5 +2,5 @@
kotlin.code.style=official
# version
kotlinVersion=1.3.71
korgeVersion=1.11.3.0
kotlinVersion=1.3.72
korgeVersion=1.12.2.2

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@@ -5,7 +5,7 @@ import com.soywiz.korim.color.*
import com.soywiz.korim.vector.*
import com.sun.jdi.*
fun Type.isKorimBitmapOrDrawable() = this.instanceOf<Bitmap>() || this.instanceOf<BmpSlice>() || this.instanceOf<Context2d.Drawable>() || this.instanceOf<com.soywiz.korge.view.Image>()
fun Type.isKorimBitmapOrDrawable() = this.instanceOf<Bitmap>() || this.instanceOf<BmpSlice>() || this.instanceOf<Drawable>() || this.instanceOf<com.soywiz.korge.view.Image>()
fun ObjectReference.readKorimBitmap32(hintWidth: Int, hintHeight: Int, thread: ThreadReference?): Bitmap32 {
val value = this
@@ -14,8 +14,8 @@ fun ObjectReference.readKorimBitmap32(hintWidth: Int, hintHeight: Int, thread: T
type.instanceOf<Bitmap>() -> readKorimBitmap32Internal(thread)
type.instanceOf<BmpSlice>() -> readKorimBmpSliceInternal(thread)
type.instanceOf<com.soywiz.korge.view.Image>() -> readKorgeImageInternal(thread)
type.instanceOf<Context2d.Drawable>() -> {
val isSizedDrawable = type.instanceOf<Context2d.SizedDrawable>()
type.instanceOf<Drawable>() -> {
val isSizedDrawable = type.instanceOf<SizedDrawable>()
val width = if (isSizedDrawable) value.invoke("getWidth", listOf(), thread = thread).int(hintWidth) else hintWidth
val height = if (isSizedDrawable) value.invoke("getHeight", listOf(), thread = thread).int(hintHeight) else hintHeight
readKorimDrawableInternal(width, height, thread)
@@ -55,9 +55,9 @@ fun ObjectReference.readKorimDrawableInternal(requestedWidth: Int, requestedHeig
val value = this
val type = value.type()
val vm = virtualMachine()
if (!type.instanceOf<Context2d.Drawable>()) error("Not a korim Context2d.Drawable")
val isSizedDrawable = type.instanceOf<Context2d.SizedDrawable>()
val isBoundsDrawable = type.instanceOf<Context2d.BoundsDrawable>()
if (!type.instanceOf<Drawable>()) error("Not a korim Context2d.Drawable")
val isSizedDrawable = type.instanceOf<SizedDrawable>()
val isBoundsDrawable = type.instanceOf<BoundsDrawable>()
val width = if (isSizedDrawable) value.invoke("getWidth", thread = thread).int(requestedWidth) else requestedWidth
val height = if (isSizedDrawable) value.invoke("getHeight", thread = thread).int(requestedHeight) else requestedHeight

View File

@@ -183,7 +183,7 @@ abstract class KorgeBaseFileEditorProvider : com.intellij.openapi.fileEditor.Fil
views, defaultConfig = SWFExportConfig(
mipmaps = false,
antialiasing = true,
rasterizerMethod = Context2d.ShapeRasterizerMethod.X4,
rasterizerMethod = ShapeRasterizerMethod.X4,
exportScale = 1.0,
exportPaths = false
)

View File

@@ -5,7 +5,7 @@
<id>com.soywiz.korge.korge-intellij-plugin</id>
<name>Korge</name>
<version>1.11.3.0</version>
<version>1.12.2.2</version>
<vendor email="soywiz@gmail.com" url="https://korge.soywiz.com/">Korge</vendor>
<description><![CDATA[
@@ -13,6 +13,10 @@
]]></description>
<change-notes><!-- language: HTML --><![CDATA[
<h3>1.12.2.2</h3>
<ul>
<li>Updated versions: Korge 1.12.2.2, Kotlin 1.3.72.</li>
</ul>
<h3>1.11.3.0</h3>
<ul>
<li>Updated versions: Korge 1.11.3.0, Kotlin 1.3.71.</li>

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists