summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_imagelib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib/ext/kvi_imagelib.cpp')
-rw-r--r--src/kvilib/ext/kvi_imagelib.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/kvilib/ext/kvi_imagelib.cpp b/src/kvilib/ext/kvi_imagelib.cpp
index 104c69d4..8c0b6b43 100644
--- a/src/kvilib/ext/kvi_imagelib.cpp
+++ b/src/kvilib/ext/kvi_imagelib.cpp
@@ -113,26 +113,16 @@ TQPixmap KviImageLibrary::getImage(int zeroBasedIndex)
int xOffset=(zeroBasedIndex % imPerRow) * m_iWidth;
int yOffset=(zeroBasedIndex / imPerRow) * m_iHeight;
-#ifdef COMPILE_USE_QT4
- TQImage image(m_iWidth,m_iHeight,m_pLibrary->format());
-#else
TQImage image(m_iWidth,m_iHeight,m_pLibrary->depth());
-#endif
int d = image.depth() / 8;
-#ifndef COMPILE_USE_QT4
- if(d == 4)image.setAlphaBuffer(true); // TQt 4.x should manage it automagically
-#endif
+ if(d == 4)image.setAlphaBuffer(true);
//Copy the image data
//bitBlt(&image,0,0,m_pLibrary,xOffset,yOffset,m_iWidth,m_iHeight,TQt::CopyROP,false);
for(int i=0;i<m_iHeight;i++)
kvi_memmove(image.scanLine(i),m_pLibrary->scanLine(i + yOffset) + (xOffset * d),m_iWidth * d);
-#ifdef COMPILE_USE_QT4
- TQPixmap p = TQPixmap::fromImage(image);
-#else
TQPixmap p(image);
-#endif
return p;
}