|
|
@ -1111,19 +1111,19 @@ namespace ncpp
|
|
|
|
|
|
|
|
|
|
|
|
ncplane* create_plane (Plane &n, int rows, int cols, int yoff, NCAlign align, void *opaque)
|
|
|
|
ncplane* create_plane (Plane &n, int rows, int cols, int yoff, NCAlign align, void *opaque)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ncplane_options nopts = {
|
|
|
|
ncplane_options nopts = {
|
|
|
|
yoff,
|
|
|
|
yoff,
|
|
|
|
static_cast<ncalign_e>(align),
|
|
|
|
static_cast<ncalign_e>(align),
|
|
|
|
rows,
|
|
|
|
rows,
|
|
|
|
cols,
|
|
|
|
cols,
|
|
|
|
opaque,
|
|
|
|
opaque,
|
|
|
|
nullptr,
|
|
|
|
nullptr,
|
|
|
|
0
|
|
|
|
0
|
|
|
|
};
|
|
|
|
};
|
|
|
|
ncplane *ret = ncplane_create (
|
|
|
|
ncplane *ret = ncplane_create (
|
|
|
|
n.plane,
|
|
|
|
n.plane,
|
|
|
|
&nopts
|
|
|
|
&nopts
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
if (ret == nullptr)
|
|
|
|
if (ret == nullptr)
|
|
|
|
throw init_error ("Notcurses failed to create an aligned plane");
|
|
|
|
throw init_error ("Notcurses failed to create an aligned plane");
|
|
|
|