Skip to content

Commit c06fb72

Browse files
committed
Track wayfire plugin API changes
1 parent 741f8ba commit c06fb72

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/mag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class mag_view_t : public wf::toplevel_view_interface_t
7171
/* Draw the inside of the rect, if we have already captured the output's contents */
7272
if (view->mag_tex.get_buffer() != NULL)
7373
{
74-
data.pass->add_texture({view->mag_tex.get_texture()}, data.target, geometry, data.damage);
74+
data.pass->add_texture(wf::texture_t::from_aux(view->mag_tex), data.target, geometry, data.damage);
7575
}
7676
}
7777
};

src/showrepaint.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,8 @@ class wayfire_showrepaint : public wf::per_output_plugin_instance_t
167167
*/
168168
if (last_buffer.get_size().width > 0)
169169
{
170-
wf::texture_t texture;
171-
texture.texture = last_buffer.get_texture();
172-
texture.transform = target_fb.wl_transform;
170+
std::shared_ptr<wf::texture_t> texture = wf::texture_t::from_aux(last_buffer);
171+
texture->set_transform(target_fb.wl_transform);
173172
rpass->add_texture(texture, target_fb, target_fb.geometry, inverted_damage);
174173
}
175174
};

src/window-zoom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class simple_node_render_instance_t : public transformer_render_instance_t<trans
123123
{
124124
auto src_tex = get_texture(1.0);
125125
auto scaled_geometry = get_scaled_geometry();
126-
src_tex.filter_mode = nearest_filtering ? WLR_SCALE_FILTER_NEAREST : WLR_SCALE_FILTER_BILINEAR;
126+
src_tex->set_filter_mode(nearest_filtering ? WLR_SCALE_FILTER_NEAREST : WLR_SCALE_FILTER_BILINEAR);
127127
data.pass->add_texture(src_tex, data.target, scaled_geometry, data.damage);
128128
}
129129
};

0 commit comments

Comments
 (0)