retrohub-org / es-theme-wrapper

EmulationStation theme wrapper for RetroHub
0 stars 0 forks source link

Fix properly image scaling with position origins #5

Closed rsubtil closed 1 year ago

rsubtil commented 1 year ago

There's currently a hack to handle image scaling when origins are set to (0,0) and (0.5, 0.5): https://github.com/retrohub-org/es-theme-wrapper/blob/fc51bfd6c3f60fbba505996f4008a193556ec9dc/objects/image/Image.gd#L99-L105 Any origin outside of this defaults to (0,0), so some themes will have images displayed unproperly (snes-mini being an example)