From 963ef3fb4bbede4090fcca8b7ab7faba72272b01 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 19 May 2012 10:27:51 +1000 Subject: Remove old, experimental code. --- win32/PlatWin.cxx | 8 -------- 1 file changed, 8 deletions(-) (limited to 'win32') 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(rcw.left) / dpiScaleX, - static_cast(ybase-yAscent) / dpiScaleY, - static_cast(rcw.right + 1) / dpiScaleX, - static_cast(rcw.bottom) / dpiScaleY); - pRenderTarget->DrawText(tbuf.buffer, tbuf.tlen, pTextFormat, layoutRect, pBrush, D2D1_DRAW_TEXT_OPTIONS_NONE); } } } -- cgit v1.2.3