TASVideos

Tool-assisted game movies
When human skills are just not enough

User movie #64182931488217382

#64182931488217382 - Square pixels for 2.4.2
Square pixels.lua (756B Lua script)
Uploaded 2020-06-21 11:30:33 by dart193 (6 files)
207 views, 20 downloads
In 2.4.2, display options seem to be broken, and "1:1 pixel size", also know as square pixels, is not working.

This is the workaround using paddings that will make pixels square again via lua script. It is designed for fullscreen and will apply stretch factor as big as the screen allows.

Screen resolution can be changed in "DesktopResX" and "DesktopResY" variables, default 1920x1080.

The script needs to be launched once and then it automatically readjusts display only if the internal resolution changes. If resolution did not change since the last frame, nothing happens at all, so the performance is not impacted.

Download Comment

Back to user movie storage