nvda
displayModel: second try at recording the actual background color for text when a transparant background color is set.
#7440
Merged

Commits
  • GDI hooks: In the TextOut and ExtTextOut functions, get the previous color at the provided X, Y coordinates before calling the original function, so we at least have a chance of knowing the correct background color if the text is being drawn in transparent mode. This is necessary to detect highlighted text in some parts of Dragon NaturallySpeaking.
    michaelDCurran committed 9 years ago
  • GDI hooks: Document the new prevColor parameter for ExtTextOutHelper
    michaelDCurran committed 9 years ago
  • GDIHooks: only call GetPixel if the background color when writing text is transparent. GetPixel can be slow so we want to limit its use.
    michaelDCurran committed 9 years ago
  • gdiHooks: no need to check if bkMode is transparent twice.
    michaelDCurran committed 9 years ago
Loading