Fix HDPI support (load / undo / redo was breaking it)

[#77972938]
Improve undo / redo history updating