I think this fixes this but I honestly don't know how to test the WPF control (#3872)
## Summary of the Pull Request I believe this fixes #3861 but I honestly don't know how to test that part of the code. Just from reading the issue description that @dhowett-msft provided. ## References ## PR Checklist * [x] Closes #3861 * [x] I work here * [ ] Are there tests for this? * [n/a] Requires documentation to be updated ## Validation Steps Performed Really none, I just built it and :fingers_crossed:
This commit is contained in:
parent
26cd4791fe
commit
fcd210ce00
|
@ -41,7 +41,7 @@ DxEngine::DxEngine() :
|
|||
_displaySizePixels{ 0 },
|
||||
_foregroundColor{ 0 },
|
||||
_backgroundColor{ 0 },
|
||||
_selectionBackground{ DEFAULT_FOREGROUND },
|
||||
_selectionBackground{},
|
||||
_glyphCell{ 0 },
|
||||
_haveDeviceResources{ false },
|
||||
_hwndTarget{ static_cast<HWND>(INVALID_HANDLE_VALUE) },
|
||||
|
@ -57,6 +57,10 @@ DxEngine::DxEngine() :
|
|||
DWRITE_FACTORY_TYPE_SHARED,
|
||||
__uuidof(_dwriteFactory),
|
||||
reinterpret_cast<IUnknown**>(_dwriteFactory.GetAddressOf())));
|
||||
|
||||
// Initialize our default selection color to DEFAULT_FOREGROUND, but make
|
||||
// sure to set to to a D2D1::ColorF
|
||||
SetSelectionBackground(DEFAULT_FOREGROUND);
|
||||
}
|
||||
|
||||
// Routine Description:
|
||||
|
|
Loading…
Reference in a new issue