nvda
cd5b1133 - Uninitialize Magnifier API if Screen curtain initialization fails. (PR #10689)

Commit
5 years ago
Uninitialize Magnifier API if Screen curtain initialization fails. (PR #10689) When screen curtain activation failed it could not be activated in future attempts. An example of screen curtain activation failing is described in #10545. Activation may fail because Windows Magnifier is already active with color inversion. But activation also fails when you try again to activate screen curtain, even if you have disabled color inversion or exited Windows Magnifier. This change: If screen curtain activation has previously failed (E.G. due to Windows Magnifier's color inversion) it should not fail after color inversion is disabled or Magnifier is off. The Magnifier API must be uninitialized before it can be reinitialized, as requested on 'Magnification API Overview | Microsoft Docs' webpage [1]: > Initializing the Magnifier Run-time LibraryInitializing the Magnifier Run-time Library > Before you can call any other magnifier API functions, you must create and initialize > the magnifier run-time objects by calling the MagInitialize function. > Similarly, after you finish using the magnifier API, > call the MagUninitialize function to destroy the magnifier run-time objects and free > the associated system resources. [1](https://docs.microsoft.com/en-us/previous-versions/windows/desktop/magapi/magapi-intro#initializing-the-magnifier-run-time-library)
Author
Committer
Parents
Loading