When trying to use rendericon to get proper icon to render near message in browser, their image got squished, so i decided to check what resolution icon is being rendered in, and it turned out to be wrong resolution. Then i decided to run the same snippet in project unrelated to mine, and it did exactly the same thing. Am i using it wrong or there's something wrong going on?
Will provide with additional information requested to resolve this, Thank you.
Trying out same code in two different projects
https://cdn.discordapp.com/attachments/1084896431049027694/ 1087047953564323910/image.png
https://cdn.discordapp.com/attachments/1084896431049027694/ 1087047953774035106/image.png
Code Snippet (if applicable) to Reproduce Problem:
world
fps = 20 // 25 frames per second
icon_size = 32 // 32x32 icon size by default
view = 7 // show up to 6 tiles outward from center (15x15 view)
//////////////////////////////////////////////////////
var/icon/I = icon(client.RenderIcon(object))
world << "[I.Width()]"
world << "[I.Height()]"
src << "\icon[I] Thats a [object.name]"
Expected Results:
Icon with 32x32 size
Actual Results:
Icon with 128x32 size
Does the problem occur:
Tested it on three separate projects, always had same result
When does the problem NOT occur?
Couldn't make it work proper
Workarounds:
Using old method of icon display in css