mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
[oiio] cast out warnings
This commit is contained in:
parent
27257328ce
commit
62a863bea8
@ -29,7 +29,7 @@ auto oiio_details_destroy(ncvisual_details* deets) -> void {
|
|||||||
auto oiio_details_seed(ncvisual* ncv) -> void {
|
auto oiio_details_seed(ncvisual* ncv) -> void {
|
||||||
int pixels = ncv->pixy * ncv->pixx;
|
int pixels = ncv->pixy * ncv->pixx;
|
||||||
ncv->details->frame = std::make_unique<uint32_t[]>(pixels);
|
ncv->details->frame = std::make_unique<uint32_t[]>(pixels);
|
||||||
OIIO::ImageSpec rgbaspec{ncv->pixx, ncv->pixy, 4};
|
OIIO::ImageSpec rgbaspec{static_cast<int>(ncv->pixx), static_cast<int>(ncv->pixy), 4};
|
||||||
ncv->details->ibuf = std::make_unique<OIIO::ImageBuf>(rgbaspec, ncv->data);
|
ncv->details->ibuf = std::make_unique<OIIO::ImageBuf>(rgbaspec, ncv->data);
|
||||||
//fprintf(stderr, "got pixel_stride: %ld %ld\n", ncv->details->ibuf->pixel_stride(), ncv->details->ibuf->scanline_stride());
|
//fprintf(stderr, "got pixel_stride: %ld %ld\n", ncv->details->ibuf->pixel_stride(), ncv->details->ibuf->scanline_stride());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user