From 3852c1800afae03111abd0bc0d626a0c9e1de1bf Mon Sep 17 00:00:00 2001 From: Fingercomp Date: Thu, 27 Aug 2026 22:38:41 +0300 Subject: [PATCH] Re-enable the high-precision mode for T3 screens The vibeport was a bit careless when it added T4 stuff and made the method unsupported for T3 screens. --- src/main/scala/li/cil/oc/common/component/TextBuffer.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/li/cil/oc/common/component/TextBuffer.scala b/src/main/scala/li/cil/oc/common/component/TextBuffer.scala index c8e656755d..449e07c51b 100644 --- a/src/main/scala/li/cil/oc/common/component/TextBuffer.scala +++ b/src/main/scala/li/cil/oc/common/component/TextBuffer.scala @@ -229,9 +229,9 @@ class TextBuffer(val host: EnvironmentHost) extends AbstractManagedEnvironment w @Callback(doc = """function(enabled:boolean):boolean -- Set whether to use high precision mode (sub-pixel mouse event positions).""") def setPrecise(computer: Context, args: Arguments): Array[AnyRef] = { - // Available for T3 screens only... easiest way to check for us is to + // Available for T3+ screens only... easiest way to check for us is to // base it off of the maximum color depth. - if (maxDepth == Settings.screenDepthsByTier(Tier.Four)) { + if (maxDepth.compareTo(Settings.screenDepthsByTier(Tier.Three)) >= 0) { val oldValue = precisionMode precisionMode = args.checkBoolean(0) result(oldValue)