Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/opengl/scene_opengl.cpp
Show First 20 Lines • Show All 2547 Lines • ▼ Show 20 Line(s) | 2537 | { | |||
---|---|---|---|---|---|
2548 | if (!m_texture) { | 2548 | if (!m_texture) { | ||
2549 | // for invalid sizes we get no texture, see BUG 361551 | 2549 | // for invalid sizes we get no texture, see BUG 361551 | ||
2550 | return; | 2550 | return; | ||
2551 | } | 2551 | } | ||
2552 | 2552 | | |||
2553 | QRect left, top, right, bottom; | 2553 | QRect left, top, right, bottom; | ||
2554 | client()->client()->layoutDecorationRects(left, top, right, bottom); | 2554 | client()->client()->layoutDecorationRects(left, top, right, bottom); | ||
2555 | 2555 | | |||
2556 | const QRect geometry = dirty ? QRect(QPoint(0, 0), client()->client()->geometry().size()) : scheduled.boundingRect(); | 2556 | const QRect geometry = dirty ? QRect(QPoint(0, 0), client()->client()->size()) : scheduled.boundingRect(); | ||
2557 | 2557 | | |||
2558 | auto renderPart = [this](const QRect &geo, const QRect &partRect, const QPoint &offset, bool rotated = false) { | 2558 | auto renderPart = [this](const QRect &geo, const QRect &partRect, const QPoint &offset, bool rotated = false) { | ||
2559 | if (!geo.isValid()) { | 2559 | if (!geo.isValid()) { | ||
2560 | return; | 2560 | return; | ||
2561 | } | 2561 | } | ||
2562 | QImage image = renderToImage(geo); | 2562 | QImage image = renderToImage(geo); | ||
2563 | if (rotated) { | 2563 | if (rotated) { | ||
2564 | // TODO: get this done directly when rendering to the image | 2564 | // TODO: get this done directly when rendering to the image | ||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |