lcd: prevent from using a scale level that isn't actually supported
commit118b53899b72607246e72411053e5eba78b76bcf
authorrofl0r <rofl0r@users.noreply.github.com>
Sat, 28 Aug 2021 01:43:09 +0000 (28 01:43 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Sat, 28 Aug 2021 01:43:09 +0000 (28 01:43 +0000)
tree837ce00e7a8e9ccc8198a183c9ca1ca4fb52f892
parentaaeec36d00d61c3034fde4092591cfc37f05fc88
lcd: prevent from using a scale level that isn't actually supported

when i recently needed gnuboy, rendering was utterly broken and it
require a while to find out it was due to "scale 5" in my gnuboy.rc.
there's not actually any code in gnuboy to support scaling higher
than 4, so the engine just doesn't render anything in the switch
statement and renders the existing junk in the buffers to the screen.

the only backend that supports scale > 4 is the SDL2 one which i
added minutes ago, due to delegating the scaling to the GPU.
lcd.c