ncvisual_rotate: no need to force rgba explicitly #1800

pull/1838/head
nick black 3 years ago
parent e32ae497d2
commit 81ee3a8d95
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -505,11 +505,6 @@ rotate_bounding_box(double stheta, double ctheta, int* leny, int* lenx,
}
int ncvisual_rotate(ncvisual* ncv, double rads){
// done to force conversion into RGBA
int err = ncvisual_resize(ncv, ncv->pixy, ncv->pixx);
if(err){
return err;
}
assert(ncv->rowstride / 4 >= ncv->pixx);
rads = -rads; // we're a left-handed Cartesian
if(ncv->data == NULL){

Loading…
Cancel
Save