RSDKModding / RSDKv3-Decompilation

A Full Decompilation of Sonic CD (2011) & Retro Engine (v3)
Other
591 stars 120 forks source link

Fix HQ scaling on SDL2 #213

Closed Mefiresu closed 1 year ago

Mefiresu commented 1 year ago

In special stages, using the HQ scaling would result in mess of pixels when the framebuffer width wasn't a multiple of 16.

This commit simplifies and optimizes the scaling, while also taking into account the potential padding that SDL would do to a texture on certain platforms.

Fixes #212