- painter.blit(m_pixmap, ePoint(0, 0), eRect(), m_alphatest?gPainter::BT_ALPHATEST:0);
-
+ {
+ int flags = 0;
+ if (m_alphatest == 0)
+ flags = 0;
+ else if (m_alphatest == 1)
+ flags = gPainter::BT_ALPHATEST;
+ else if (m_alphatest == 2)
+ flags = gPainter::BT_ALPHABLEND;
+ if (m_scale)
+ painter.blitScale(m_pixmap, eRect(ePoint(0, 0), size()), eRect(), flags);
+ else
+ painter.blit(m_pixmap, ePoint(0, 0), eRect(), flags);
+ }
+