This issue stems from #1447 which was merged without fixing GM5 compatibility for the functions involved. The reason was because it became difficult to include and make use of the compatibility macro from the sprite's source file.
It was discovered in #1099 that the stretched sprite drawing functions ignore the origin in GM8 and GM:S. I revealed in #1447 that GM5 will actually scale the origin instead of ignoring it. Hence, we can add backwards compatibility if we fix the compatibility macro.
GameMaker 5 Stretched Sprite Origin is Scaled
Test GMD download: sprite-stretched-origin.zip
Game Maker 6 Stretched Sprite Ignore Origin
Game Maker 5 Stretched Sprite Scale Origin
Just to mention, I went back now and tested the stretched sprite origin in GameMaker 4 and it does appear to behave like GM5. Any changes to the sprite's origin property causes it to draw differently when
draw_sprite_stretchedis called. This means a fixed compatibility setting would be nice for legacy purposes.
- GM4 - GM5: sprite origin is scaled
- GM6 - GMS: sprite origin is ignored
draw_sprite_stretched(n,img,x,y,w,h) Draws the sprite stretched such
that it fills the region with top- left corner (x,y) and width w and height h..
Download GM4 GMD Test Project: stretched-origin-test-gm4gmd.zip