diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-03-09 19:45:41 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-03-09 19:48:25 +0200 |
commit | 2823f7bd4898ab9ebc7ea2937b9db235dc52ae84 (patch) | |
tree | 583e9707e1caf11c8fd86f19cac0ec2b4a989c01 /cui | |
parent | 417262ab8324585f7a977ede80c9736ef6463b77 (diff) |
Make the new D2D Graphite rendering work also in the OpenGL case
It used to render just black boxes.
The change in DrawTextImpl() semantics from
61085083e4a5060ba7e2135818264d63c6da13c2 was not properly implemented
in the new Graphite code. The return value is not some kind of
"success" indicator, but tells the caller whether to continue the loop
at that level.
We do need to call FillRect() to fill the requested rectangle of the
HDC with white. On the other hand, the call to Clear() is not needed
and in fact makes no text show up.
(I now see that that same code snippet that calls FillRect() is used
in all the DrawTextImpl() implementations, so it should be factored
out to the call site in WinLayout::DrawText().)
Change-Id: If0533ea1edf065b06ae888c6e57c026f447bcf78
Diffstat (limited to 'cui')
0 files changed, 0 insertions, 0 deletions