vizdirect: use all three scaling types #759

This commit is contained in:
nick black 2020-07-03 19:30:20 -04:00 committed by Nick Black
parent b698efb953
commit 74b44506b6

View File

@ -16,7 +16,13 @@ int main(void){
return EXIT_FAILURE;
}
sleep(1);
if(ncdirect_render_image(n, "../data/changes.jpg", NCBLIT_DEFAULT, NCSCALE_STRETCH) != NCERR_SUCCESS){
printf("\n");
if(ncdirect_render_image(n, "../data/changes.jpg", NCBLIT_DEFAULT, NCSCALE_SCALE) != NCERR_SUCCESS){
return EXIT_FAILURE;
}
sleep(1);
printf("\n");
if(ncdirect_render_image(n, "../data/warmech.bmp", NCBLIT_DEFAULT, NCSCALE_NONE) != NCERR_SUCCESS){
return EXIT_FAILURE;
}
if(ncdirect_stop(n)){