~mir-team/mir/development-branch

« back to all changes in this revision

Viewing changes to src/server/scene/basic_surface.cpp

  • Committer: Tarmac
  • Author(s): Kevin DuBois
  • Date: 2015-10-09 01:27:57 UTC
  • mfrom: (2999.2.7 multistream-size)
  • Revision ID: tarmac-20151009012757-qa4i3h2xfrart3vp
In multibuffer stream scenarios, ensure that the size of the renderable generated from the stream is the size of the stream.

fixes lp: #1503317. Fixes: https://bugs.launchpad.net/bugs/1503317.

Approved by Chris Halse Rogers, PS Jenkins bot, Alan Griffiths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
877
877
        {
878
878
            list.emplace_back(std::make_shared<SurfaceSnapshot>(
879
879
                info.stream, id,
880
 
                geom::Rectangle{surface_rect.top_left + info.displacement, surface_rect.size},
 
880
                geom::Rectangle{surface_rect.top_left + info.displacement, info.stream->stream_size()},
881
881
                transformation_matrix, surface_alpha, nonrectangular, info.stream.get()));
882
882
        }
883
883
    }