Skip to content

Apply an offset to certain primitives just like GameMaker runner does#295

Open
iProgramMC wants to merge 2 commits into
ButterscotchRunner:mainfrom
iProgramMC:drawing-prim-fix
Open

Apply an offset to certain primitives just like GameMaker runner does#295
iProgramMC wants to merge 2 commits into
ButterscotchRunner:mainfrom
iProgramMC:drawing-prim-fix

Conversation

@iProgramMC

Copy link
Copy Markdown
Contributor

Controlled by a flag, because some GameMaker games don't actually need this fix applied.

This fixes the gears in the Core in UNDERTALE and makes them look correct.

Controlled by a flag, called "Legacy primitive drawing behaviour".
@Un1q32 Un1q32 requested a review from Fancy2209 July 3, 2026 19:40
Comment thread src/runner.c Outdated
@Un1q32

Un1q32 commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

LGTM. Tested in modern-gl and legacy-gl, does indeed fix the gears right before muffet.

@iProgramMC

Copy link
Copy Markdown
Contributor Author

Update: the condition is actually: if (GameMakerVersion < 2024.14 || (Flags & 0x800000000)) then ApplyFix = true;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants