- implement cropping
- swap top/left with left/top in config dialogue
- implement automatic bitmap/texture resize
- implement input selection instead of hardcoding to 0
- fix memory leaks
- add comments
- clean up old cruft
check hRGB before trying to set cropping
- update crop settings in real-time
- update input selection and detected mode in real-time
- implement mode change callback
- add red/green/blue gain controls to GUI (unused)
- add per-mode settings retention checkbox to GUI (unused)