Avamander / arduino-tvout

Arduino-TVout
332 stars 82 forks source link

please dont render bitmap areas exceeding screen size #111

Closed treaki closed 7 years ago

treaki commented 7 years ago

please add a bitmap function that checks if the image size and image position exceeds the screen-size and render only the area that can be displayed at all. I am trying to move a fish over the screen... See here: fishPAL.zip

Issues: if you just put the fish on the screen on a position that exceeds the scree size it will be displayed above that size which results in starting at the other side of the screen.

If you try to put a black box above the the areas you dont want to see the time to render will shourtly flicker a fish that shouldn't be seen.

see also #110 ; found no possibility to hide the rendering from the user. I guess best would be a blitting system with dubble buffering like in sdl

Thanks in advance

Avamander commented 7 years ago

Just pre-cut the bitmap to not include the parts you don't want to be rendered. I don't have the time to add a function that does it for you unfortunately.