mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Dont invalidate paint buffer when selecting (#4911)
This commit is contained in:
parent
fcc5f4b3df
commit
c8e03b4ad7
|
@ -52,7 +52,7 @@
|
|||
- Dev: Add a compile-time flag `USE_SYSTEM_MINIAUDIO` which can be turned on to use the system miniaudio. (#4867)
|
||||
- Dev: Update vcpkg to use Qt6. (#4872)
|
||||
- Dev: Replace `boost::optional` with `std::optional`. (#4877)
|
||||
- Dev: Improve performance by reducing repaints caused by selections. (#4889)
|
||||
- Dev: Improve performance of selecting text. (#4889, #4911)
|
||||
- Dev: Removed direct dependency on Qt 5 compatibility module. (#4906)
|
||||
- Dev: Refactor `DebugCount` and add copy button to debug popup. (#4921)
|
||||
- Dev: Changed lifetime of context menus. (#4924)
|
||||
|
|
|
@ -200,7 +200,7 @@ void MessageLayout::paint(const MessagePaintContext &ctx)
|
|||
{
|
||||
QPixmap *pixmap = this->ensureBuffer(ctx.painter, ctx.canvasWidth);
|
||||
|
||||
if (!this->bufferValid_ || !ctx.selection.isEmpty())
|
||||
if (!this->bufferValid_)
|
||||
{
|
||||
this->updateBuffer(pixmap, ctx);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue