mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 11:09:21 +01:00
Wide characters fix
This commit is contained in:
parent
cdbb421e7e
commit
52efbbcc81
@ -83,7 +83,12 @@ local function byteFieldDraw(object)
|
|||||||
textColor = colors.selectionBetweenText
|
textColor = colors.selectionBetweenText
|
||||||
end
|
end
|
||||||
|
|
||||||
screen.drawText(x, y, textColor, object.asChar and string.char(bytes[index]) or string.format("%02X", bytes[index]))
|
if object.asChar then
|
||||||
|
local char = string.char(bytes[index])
|
||||||
|
screen.drawText(x, y, textColor, unicode.isWide(char) and "-" or char)
|
||||||
|
else
|
||||||
|
screen.drawText(x, y, textColor, string.format("%02X", bytes[index]))
|
||||||
|
end
|
||||||
else
|
else
|
||||||
return object
|
return object
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user