beremiz

Fix exception when canvas becomes null because of window resize, and avoid useless parameter+condition in GetLogicalDC
Write your own POUs
===================