summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_doublebuffer.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-24 21:28:39 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-31 16:31:47 +0900
commit7c3b44b81086c6b99f91e294c3b438dc808b47e2 (patch)
treed92d61649487df1a2fbd200d4ead11a7f16ba63f /src/kvilib/ext/kvi_doublebuffer.cpp
parentcafbffba66b6ce809783ed1eb4d24aac6fe9701f (diff)
downloadkvirc-7c3b44b81086c6b99f91e294c3b438dc808b47e2.tar.gz
kvirc-7c3b44b81086c6b99f91e294c3b438dc808b47e2.zip
Drop USE_QT4 code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 030a2248f3630fd0404df98beffc78b5b5ca4c31)
Diffstat (limited to 'src/kvilib/ext/kvi_doublebuffer.cpp')
-rw-r--r--src/kvilib/ext/kvi_doublebuffer.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/kvilib/ext/kvi_doublebuffer.cpp b/src/kvilib/ext/kvi_doublebuffer.cpp
index 5f48a0cb..0f15dca3 100644
--- a/src/kvilib/ext/kvi_doublebuffer.cpp
+++ b/src/kvilib/ext/kvi_doublebuffer.cpp
@@ -38,12 +38,7 @@ KviDoubleBuffer::KviDoubleBuffer(unsigned int uWidth,unsigned int uHeight)
// There is either no such user requirement or it has grown by the meantime
unsigned int uMaxW = uWidth > g_pMemoryPixmap->width() ? uWidth : g_pMemoryPixmap->width();
unsigned int uMaxH = uHeight > g_pMemoryPixmap->height() ? uHeight : g_pMemoryPixmap->height();
-#ifdef COMPILE_USE_QT4
- // QT4SUX: TQPixmap::resize() is missing (it's a widely used function and assigning a new TQPixmap() seems to be slower and not intuitive)
- *g_pMemoryPixmap = TQPixmap(uMaxW,uMaxH);
-#else
g_pMemoryPixmap->resize(uMaxW,uMaxH);
-#endif
}
if(uWidth > g_uMaxRequestedWidth)g_uMaxRequestedWidth = uWidth;
@@ -78,12 +73,7 @@ void KviDoubleBuffer::heartbeat()
if(((g_uMaxRequestedHeight + 64) < g_pMemoryPixmap->height()) || ((g_uMaxRequestedWidth + 64) < g_pMemoryPixmap->width()))
{
// do shrink :)
-#ifdef COMPILE_USE_QT4
- // QT4SUX: TQPixmap::resize() is missing (it's a widely used function and assigning a new TQPixmap() seems to be slower and not intuitive)
- *g_pMemoryPixmap = TQPixmap(g_uMaxRequestedWidth,g_uMaxRequestedHeight);
-#else
g_pMemoryPixmap->resize(g_uMaxRequestedWidth,g_uMaxRequestedHeight);
-#endif
}
g_uMaxRequestedHeight = 0;
g_uMaxRequestedWidth = 0;