Skip to content

Commit

Permalink
Merge branch 'master' into experimental-0.6
Browse files Browse the repository at this point in the history
# Conflicts:
#	build.sbt
  • Loading branch information
JD557 committed Oct 7, 2023
2 parents 688ccfe + ab0caaa commit a7ece0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class ImageDataOpaqueSurface(val data: ImageData) extends MutableSurface {

val width: Int = data.width
val height: Int = data.height
private val dataBuffer = new Int32Array(data.data.asInstanceOf[Uint8ClampedArray].buffer)
private val dataBuffer = new Int32Array(data.data.buffer)

def unsafeGetPixel(x: Int, y: Int): Color = Color.fromBGR(dataBuffer(y * width + x))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class ImageDataSurface(val data: ImageData) extends MutableSurface {

val width: Int = data.width
val height: Int = data.height
private val dataBuffer = new Int32Array(data.data.asInstanceOf[Uint8ClampedArray].buffer)
private val dataBuffer = new Int32Array(data.data.buffer)

def unsafeGetPixel(x: Int, y: Int): Color = Color.fromABGR(dataBuffer(y * width + x))

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ val publishSettings = Seq(

val jsSettings = Seq(
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "2.7.0"
"org.scala-js" %%% "scalajs-dom" % "2.8.0"
)
)

Expand Down

0 comments on commit a7ece0e

Please sign in to comment.