diff options
| author | nyamatongwe <unknown> | 2012-05-19 10:27:51 +1000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2012-05-19 10:27:51 +1000 | 
| commit | 963ef3fb4bbede4090fcca8b7ab7faba72272b01 (patch) | |
| tree | f71fe05d68a3901e73efec7118c0ad4d4d46e7ae | |
| parent | 1841d987ebb68df44abbbe4907fb6171706fd8cc (diff) | |
| download | scintilla-mirror-963ef3fb4bbede4090fcca8b7ab7faba72272b01.tar.gz | |
Remove old, experimental code.
| -rw-r--r-- | win32/PlatWin.cxx | 8 | 
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);  		}  	}  } | 
