aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--win32/PlatWin.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 2ae056f30..ddc121abc 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -1567,7 +1567,6 @@ void SurfaceD2D::Copy(PRectangle rc, Point from, Surface &surfaceSource) {
void SurfaceD2D::DrawTextCommon(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, UINT) {
SetFont(font_);
- RECT rcw = RectFromPRectangle(rc);
// Use Unicode calls
const TextWide tbuf(s, len, unicodeMode, codePage);
@@ -1581,13 +1580,6 @@ void SurfaceD2D::DrawTextCommon(PRectangle rc, Font &font_, XYPOSITION ybase, co
D2D1_POINT_2F origin = {rc.left, ybase-yAscent};
pRenderTarget->DrawTextLayout(origin, pTextLayout, pBrush, D2D1_DRAW_TEXT_OPTIONS_NONE);
pTextLayout->Release();
- } else {
- D2D1_RECT_F layoutRect = D2D1::RectF(
- static_cast<FLOAT>(rcw.left) / dpiScaleX,
- static_cast<FLOAT>(ybase-yAscent) / dpiScaleY,
- static_cast<FLOAT>(rcw.right + 1) / dpiScaleX,
- static_cast<FLOAT>(rcw.bottom) / dpiScaleY);
- pRenderTarget->DrawText(tbuf.buffer, tbuf.tlen, pTextFormat, layoutRect, pBrush, D2D1_DRAW_TEXT_OPTIONS_NONE);
}
}
}