-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change TextLabelControl to support DirectWrite
If Direct2d is enabled TextLabelControl will render using DirectWrite. Supports only some GDI flag conversion (didn't implement everything). I'm not particularly fond of the fact that you can't change vertical justification in GDI when you're using multiline, might just try to handle that by measuring then changing the location of the output rect. Window now takes a Color for the background brush and will only allocate a brush if it really needs to. There is no great way to have Windows use a different background brush without creating a WindowClass for every single Window. If Direct2D is enabled background painting is skipped. I'm considering making the Direct2D handling a MessageHandler which might make the experience tighter. I hadn't fully internalized how HDC state works, but I think I have a better handle on it now. In order to simplify things I've changed DeviceContext for BeginPaint to save the DC state by default. Removed an effectively no-op setting in the Window constructor related to this.
- Loading branch information
1 parent
74f7ad4
commit 698f574
Showing
24 changed files
with
723 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.