| Index: chrome/common/gfx/chrome_canvas_win.cc
|
| ===================================================================
|
| --- chrome/common/gfx/chrome_canvas_win.cc (revision 10202)
|
| +++ chrome/common/gfx/chrome_canvas_win.cc (working copy)
|
| @@ -158,7 +158,6 @@
|
| if (!IntersectsClipRectInt(x, y, w, h))
|
| return;
|
|
|
| - getTopPlatformDevice().prepareForGDI(x, y, w, h);
|
| RECT text_bounds = { x, y, x + w, y + h };
|
| HDC dc = beginPlatformPaint();
|
| SetBkMode(dc, TRANSPARENT);
|
| @@ -174,7 +173,11 @@
|
| // Restore the old font. This way we don't have to worry if the caller
|
| // deletes the font and the DC lives longer.
|
| SelectObject(dc, old_font);
|
| - getTopPlatformDevice().postProcessGDI(x, y, w, h);
|
| +
|
| + // Windows will have cleared the alpha channel of the text we drew. Assume
|
| + // we're drawing to an opaque surface, or at least the text rect area is
|
| + // opaque.
|
| + getTopPlatformDevice().makeOpaque(x, y, w, h);
|
| }
|
|
|
| void ChromeCanvas::DrawStringInt(const std::wstring& text,
|
|
|