void eWindowStyleSimple::drawFrame(gPainter &painter, const eRect &frame, int what) { gColor c1, c2; switch (what) { case frameButton: c1 = m_border_color_tl; c2 = m_border_color_br; break; case frameListboxEntry: c1 = m_border_color_br; c2 = m_border_color_tl; break; } painter.setForegroundColor(c2); painter.line(frame.topLeft1(), frame.topRight1()); painter.line(frame.topRight1(), frame.bottomRight1()); painter.setForegroundColor(c1); painter.line(frame.bottomRight1(), frame.bottomLeft1()); painter.line(frame.bottomLeft1(), frame.topLeft1()); }