[libgens] CrazyEffect: Use size and color depth properties from the MdFb.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Sun, 6 Sep 2015 19:54:51 +0000 (15:54 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Sun, 6 Sep 2015 19:54:51 +0000 (15:54 -0400)
commit30a9703483aba11a71ffdf0d235949c429919a9e
tree1a6d5cbd6db57d217a8ccd8ca4be3642365d14a6
parentf56a99a9b98e988b2f73c0f6839cf18ba69fb13d
[libgens] CrazyEffect: Use size and color depth properties from the MdFb.

- Don't hard-code 336 and 336*240. Use pxCount and pxPitch values
  from the MdFb to allow for changes later. Note that the CrazyEffect
  does manipulate pixels outside of the visible area in order to
  reduce code complexity.

- run(): Check the color depth of the MdFb and run the appropriate
  "Crazy" Effect function.
src/libgens/Effects/CrazyEffect.cpp