irect theme_rect_s::captionrect( const irect &rr, bool maximized ) const { irect r; if (maximized || fastborder()) { r.lt = clientborder.lt - maxcutborder.lt + rr.lt; r.rb.x = rr.width() - clientborder.rb.x + maxcutborder.rb.x + rr.lt.x; r.rb.y = r.lt.y + capheight_max; } else { r.lt = clientborder.lt + rr.lt; r.rb.x = rr.width() - clientborder.rb.x + rr.lt.x; r.rb.y = r.lt.y + capheight; } return r; }
void Renderer::readFrontBuffer(const irect& area, u16vec4* pixelsOut) const { glReadPixels(area.left(), area.bottom(), area.width(), area.height(), GL_RGBA, GL_UNSIGNED_SHORT, pixelsOut); }