beremiz

Fix exception when canvas becomes null because of window resize, and avoid useless parameter+condition in GetLogicalDC
/**
* No platform specific code for "Generic" target
**/