refactored CWinSystemBase::SetWindowResolution code for fix could
be moved to windowing