#include #include KDFrameBuffer::KDFrameBuffer(KDColor * pixels, KDSize size) : m_pixels(pixels), m_size(size) { } KDRect KDFrameBuffer::bounds() { return KDRect(KDPointZero, m_size); } KDColor * KDFrameBuffer::pixelAddress(KDPoint p) const { return m_pixels + p.x() + p.y()*m_size.width(); } void KDFrameBuffer::pushRect(KDRect rect, const KDColor * pixels) { const KDColor * line = pixels; for (KDCoordinate j=0; j