terminal/src/renderer/dx
Carlos Zamora 28d108bf32
Set DxRenderer non-text alias mode (#5149)
There are two antialias modes that can be set on the ID2D1RenderTarget:
- one for text/glyph drawing [1]
- one for everything else [2]
We had to configure that in the RenderTarget.

Additionally, when clipping the background color rect, we need to make
sure that's aliased too. [3]

## References
[1] ID2D1RenderTarget::SetTextAntialiasMode
    https://docs.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-id2d1rendertarget-settextantialiasmode
[2] ID2D1RenderTarget::SetAntialiasMode
    https://docs.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-id2d1rendertarget-setantialiasmode)
[3] ID2D1CommandSink::PushAxisAlignedClip
    https://docs.microsoft.com/en-us/windows/win32/api/d2d1_1/nf-d2d1_1-id2d1commandsink-pushaxisalignedclip)

## Validation
Open and interact with midnight commander with the display scaling set
to...
- 100%
- 125%
- 150%
- 175%
- 200%

Closes #3626
2020-03-28 00:15:50 +00:00
..
lib Add experimental retro terminal effects (#3468) 2019-12-12 13:44:01 +00:00
ut_dx Import build fix changes from OS for sync to a34a957cf 2020-03-16 18:26:48 +00:00
CustomTextLayout.cpp ci: run spell check in CI, fix remaining issues (#4799) 2020-03-25 11:02:53 -07:00
CustomTextLayout.h Improve glyph scaling correction (#4747) 2020-03-02 19:21:07 +00:00
CustomTextRenderer.cpp Set DxRenderer non-text alias mode (#5149) 2020-03-28 00:15:50 +00:00
CustomTextRenderer.h remove null check from glyph run drawing as it's truly optional (#2791) 2019-09-17 10:25:22 -07:00
dirs Import build fix changes from OS for sync to a34a957cf 2020-03-16 18:26:48 +00:00
DxRenderer.cpp Set DxRenderer non-text alias mode (#5149) 2020-03-28 00:15:50 +00:00
DxRenderer.hpp Move ConPTY to use til::bitmap (#5024) 2020-03-23 15:57:54 +00:00
precomp.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
precomp.h Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
ScreenPixelShader.h Scale retro terminal scan lines (#4716) 2020-02-26 00:08:45 +00:00
ScreenVertexShader.h Merged PR 4182306: [Git2Git] Merged PR 4182266: conhost: don't use D3DCompiler on inside-windows builds (and delete the shaders) 2020-01-23 00:42:56 +00:00
sources.inc Merged PR 4182306: [Git2Git] Merged PR 4182266: conhost: don't use D3DCompiler on inside-windows builds (and delete the shaders) 2020-01-23 00:42:56 +00:00