Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Mar 27, 2024
1 parent 5bc16de commit 670de10
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/ruisapp/glue/linux/glue_wayland.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,10 @@ struct window_wrapper : public utki::destructable {
region.add(r4::rectangle({0, 0}, dims.to<int32_t>()));
surface.set_opaque_region(region);

this->win = wl_egl_window_create(surface.sur, dims.x(), dims.y());
auto int_dims = dims.to<int>();

// NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer)
this->win = wl_egl_window_create(surface.sur, int_dims.x(), int_dims.y());

if (!this->win) {
throw std::runtime_error("could not create wayland egl window");
Expand Down Expand Up @@ -489,6 +492,12 @@ struct window_wrapper : public utki::destructable {
scope_exit_egl_display.release();
}

egl_context_wrapper(const egl_context_wrapper&) = delete;
egl_context_wrapper& operator=(const egl_context_wrapper&) = delete;

egl_context_wrapper(egl_context_wrapper&&) = delete;
egl_context_wrapper& operator=(egl_context_wrapper&&) = delete;

~egl_context_wrapper()
{
// unset current context
Expand Down

0 comments on commit 670de10

Please sign in to comment.