return 0;
}
+void eWindowStyleSkinned::setPixmap(int bs, int bp, ePtr<gPixmap> &ptr)
+{
+ setPixmap(bs, bp, *(ptr.operator->()));
+}
+
void eWindowStyleSkinned::setPixmap(int bs, int bp, gPixmap &pixmap)
{
if ((bs >= bsMax) || (bs < 0))
if (m_border[bs].m_pixmap[i])
if (m_border[bs].m_border_bottom < m_border[bs].m_pixmap[i]->size().height())
m_border[bs].m_border_bottom = m_border[bs].m_pixmap[i]->size().height();
- for (int i = 0; i < 9; i += 3)
- if (m_border[bs].m_pixmap[i])
- if (m_border[bs].m_border_left < m_border[bs].m_pixmap[i]->size().width())
- m_border[bs].m_border_left = m_border[bs].m_pixmap[i]->size().width();
- for (int i = 2; i < 9; i += 3)
- if (m_border[bs].m_pixmap[i])
- if (m_border[bs].m_border_right < m_border[bs].m_pixmap[i]->size().width())
- m_border[bs].m_border_right = m_border[bs].m_pixmap[i]->size().width();
- eDebug("recalced border size for %d: %d:%d %d:%d",
+
+ if (m_border[bs].m_pixmap[3])
+ m_border[bs].m_border_left = m_border[bs].m_pixmap[3]->size().width();
+ else
+ m_border[bs].m_border_left = 0;
+
+ if (m_border[bs].m_pixmap[5])
+ m_border[bs].m_border_right = m_border[bs].m_pixmap[5]->size().width();
+ else
+ m_border[bs].m_border_right = 0;
+
+/* eDebug("recalced border size for %d: %d:%d %d:%d",
bs,
m_border[bs].m_border_left, m_border[bs].m_border_top,
- m_border[bs].m_border_right, m_border[bs].m_border_bottom);
+ m_border[bs].m_border_right, m_border[bs].m_border_bottom); */
}
void eWindowStyleSkinned::setColor(int what, const gRGB &col)