Bugzilla – Attachment 142591 Details for
Bug 114012
High CPU usage when deleting some text with backspace
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Blind patch.
patch (text/plain), 1.52 KB, created by
Miklos Vajna
on 2018-06-07 15:40:24 UTC
(
hide
)
Description:
Blind patch.
Filename:
MIME Type:
Creator:
Miklos Vajna
Created:
2018-06-07 15:40:24 UTC
Size:
1.52 KB
patch
obsolete
>diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx >index 0da13be25d16..abbb490d00e7 100644 >--- a/vcl/source/window/cursor.cxx >+++ b/vcl/source/window/cursor.cxx >@@ -47,11 +47,7 @@ struct ImplCursorData > static void ImplCursorInvert( ImplCursorData const * pData ) > { > vcl::Window* pWindow = pData->mpWindow; >- std::unique_ptr<PaintBufferGuard> pGuard; >- const bool bDoubleBuffering = pWindow->SupportsDoubleBuffering(); >- if (bDoubleBuffering) >- pGuard.reset(new PaintBufferGuard(pWindow->ImplGetWindowImpl()->mpFrameData, pWindow)); >- vcl::RenderContext* pRenderContext = bDoubleBuffering ? pGuard->GetRenderContext() : pWindow; >+ vcl::RenderContext* pRenderContext = pWindow; > tools::Rectangle aPaintRect; > bool bMapMode = pRenderContext->IsMapModeEnabled(); > pRenderContext->EnableMapMode( false ); >@@ -117,19 +113,13 @@ static void ImplCursorInvert( ImplCursorData const * pData ) > if ( pData->mnOrientation ) > aPoly.Rotate( pData->maPixRotOff, pData->mnOrientation ); > pRenderContext->Invert( aPoly, nInvertStyle ); >- if (bDoubleBuffering) >- aPaintRect = aPoly.GetBoundRect(); > } > } > else > { > pRenderContext->Invert( aRect, nInvertStyle ); >- if (bDoubleBuffering) >- aPaintRect = aRect; > } > pRenderContext->EnableMapMode( bMapMode ); >- if (bDoubleBuffering) >- pGuard->SetPaintRect(pRenderContext->PixelToLogic(aPaintRect)); > } > > void vcl::Cursor::ImplDraw()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 114012
:
137946
| 142591