From 8e771bd32205f80d7044cfe9c7eba332c4f27bf7 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 21 Oct 2022 09:07:32 +0800 Subject: [PATCH] minor change --- RedPandaIDE/editor.cpp | 2 +- libs/qsynedit/qsynedit/SynEdit.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 2dd9bb09..b3bb62bb 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -1609,7 +1609,7 @@ void Editor::onStatusChanged(QSynedit::StatusChanges changes) // Is there a bracket char before us? int lineLength = lineText().length(); int ch = caretX() - 2; - QSynedit::BufferCoord coord; + QSynedit::BufferCoord coord{0,0}; if (ch>=0 && ch image = std::make_shared(clientWidth()*dpr,clientHeight()*dpr, + mContentImage = std::make_shared(clientWidth()*dpr,clientHeight()*dpr, QImage::Format_ARGB32); - image->setDevicePixelRatio(dpr); - QRect newRect = image->rect().intersected(mContentImage->rect()); + mContentImage->setDevicePixelRatio(dpr); +// QRect newRect = image->rect().intersected(mContentImage->rect()); - QPainter painter(image.get()); +// QPainter painter(image.get()); - painter.drawImage(newRect,*mContentImage); + //painter.drawImage(newRect,*mContentImage); - mContentImage = image; +// mContentImage = image; onSizeOrFontChanged(false); }