diff --git a/src/lib/visual.cpp b/src/lib/visual.cpp index 327c28000..a1da5570c 100644 --- a/src/lib/visual.cpp +++ b/src/lib/visual.cpp @@ -425,7 +425,10 @@ auto ncvisual_render(notcurses* nc, ncvisual* ncv, }, .rows = disprows / encoding_y_scale(bset), .cols = dispcols / encoding_x_scale(bset), + .userptr = nullptr, .name = "vis", + .resizecb = nullptr, + .flags = 0, }; if((n = ncplane_create(notcurses_stdplane(nc), &nopts)) == nullptr){ return nullptr; diff --git a/tests/blit.cpp b/tests/blit.cpp index 843babb55..d10c9e02e 100644 --- a/tests/blit.cpp +++ b/tests/blit.cpp @@ -14,7 +14,19 @@ TEST_CASE("Blitting") { 0xffffffff, 0xff0088ff, 0xffff8800, 0xff88ff00, 0xffff0088, 0xff8800ff, 0Xff00ff88, 0xff000000, }; - auto ncp = ncplane_new(n_, 2, 4, 0, 0, nullptr, nullptr); + struct ncplane_options nopts = { + .y = 0, + .horiz = { + .x = 0, + }, + .rows = 2, + .cols = 4, + .userptr = nullptr, + .name = nullptr, + .resizecb = nullptr, + .flags = 0, + }; + auto ncp = ncplane_create(n_, &nopts); REQUIRE(nullptr != ncp); struct ncvisual_options vopts = { .n = ncp, @@ -52,7 +64,19 @@ TEST_CASE("Blitting") { 0xffffffff, 0xff0088ff, 0xffff8800, 0xff88ff00, 0x00000000, 0xffff0088, 0xff8800ff, 0xff00ff88, 0xff000000, 0x00000000, }; - auto ncp = ncplane_new(n_, 2, 4, 0, 0, nullptr, nullptr); + struct ncplane_options nopts = { + .y = 0, + .horiz = { + .x = 0, + }, + .rows = 2, + .cols = 4, + .userptr = nullptr, + .name = nullptr, + .resizecb = nullptr, + .flags = 0, + }; + auto ncp = ncplane_create(n_, &nopts); REQUIRE(nullptr != ncp); struct ncvisual_options vopts = { .n = ncp,