From d3d887f22fb0444aae4bca7abce8648eddd7c1b5 Mon Sep 17 00:00:00 2001 From: Adrian Siekierka Date: Sun, 7 May 2023 09:57:02 +0200 Subject: [PATCH] fix #3609 --- changelog.md | 1 + src/main/scala/li/cil/oc/server/component/GraphicsCard.scala | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index cb7d7ea32..3bab611ca 100644 --- a/changelog.md +++ b/changelog.md @@ -27,6 +27,7 @@ * Changed: The game now crashes instead of reloading defaults if a config file is present but invalid. * Fixed: [#3588] Renaming over other files does not properly free space. * Fixed: [#3591] Memory leak with wrapped worlds from other mods. +* Fixed: [#3609] Swapped arguments in a graphics card "bitblt()" edge case. * Removed: Native Lua library support for x86 (32-bit) macOS. * (1.7.10) Fixed: [#3239] Inconsistencies in Robot block clicking. diff --git a/src/main/scala/li/cil/oc/server/component/GraphicsCard.scala b/src/main/scala/li/cil/oc/server/component/GraphicsCard.scala index c17b8a34c..3e8a69464 100644 --- a/src/main/scala/li/cil/oc/server/component/GraphicsCard.scala +++ b/src/main/scala/li/cil/oc/server/component/GraphicsCard.scala @@ -258,7 +258,7 @@ class GraphicsCard(val tier: Int) extends prefab.ManagedEnvironment with DeviceI result(true) } else { // at least one of the two buffers is a gpu buffer - component.GpuTextBuffer.bitblt(dst, col, row, w, h, src, fromRow, fromCol) + component.GpuTextBuffer.bitblt(dst, col, row, w, h, src, fromCol, fromRow) result(true) } } else result(Unit, "not enough energy")