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

Commit
8 years ago
displayModel: second try at recording the actual background color for text when a transparant background color is set. (#7440) * 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. * GDI hooks: Document the new prevColor parameter for ExtTextOutHelper * GDIHooks: only call GetPixel if the background color when writing text is transparent. GetPixel can be slow so we want to limit its use. * gdiHooks: no need to check if bkMode is transparent twice.
Parents
Loading