Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/scala/li/cil/oc/common/component/TextBuffer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading