implement NCVISUAL_OPTION_NOINTERPOLATE #1576

pull/1742/head
nick black 3 years ago committed by Nick Black
parent d730abb6b0
commit af7cde565b

@ -60,7 +60,7 @@ int ncvisual_blit(ncvisual* ncv, int rows, int cols, ncplane* n,
const struct blitset* bset, const blitterargs* barg){ const struct blitset* bset, const blitterargs* barg){
// FIMXE see #1576 -- if requested, do scaling here, with resize_bitmap() // FIMXE see #1576 -- if requested, do scaling here, with resize_bitmap()
int ret = -1; int ret = -1;
if(visual_implementation){ if(visual_implementation && !(barg->flags & NCVISUAL_OPTION_NOINTERPOLATE)){
if(visual_implementation->visual_blit(ncv, rows, cols, n, bset, barg) >= 0){ if(visual_implementation->visual_blit(ncv, rows, cols, n, bset, barg) >= 0){
ret = 0; ret = 0;
} }

Loading…
Cancel
Save