init_pair(CP_YELLOW, 208, trans);
// enable color fading
- if(!nofade) fade = 1;
+ if(!nofade)
+ fade = true;
// 8 color mode
} else {
fade_in(content, trans, colors, invert);
// re-enable fading after any undefined key press
- if(COLORS == 256 && !nofade) fade = 1;
+ if(COLORS == 256 && !nofade)
+ fade = true;
// wait for user input
c = getch();
slide = slide->prev;
sc--;
} else {
- fade = 0;
+ fade = false;
}
break;
slide = slide->next;
sc++;
} else {
- fade = 0;
+ fade = false;
}
break;
}
} else {
// disable fading if slide n doesn't exist
- fade = 0;
+ fade = false;
}
break;
// quit
case 'q':
// do not fade out on exit
- fade = 0;
+ fade = false;
slide = NULL;
break;
default:
// disable fading on undefined key press
- fade = 0;
+ fade = false;
break;
}