YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

Window VM - Drawing operations are offset #5192

Closed gm-bug-reporter[bot] closed 7 months ago

gm-bug-reporter[bot] commented 7 months ago

Description

Hi, I'm having issues with the Window VM export where drawing operations are offset by 1 unit when using variables to draw. I am working at high precision/zoom, to the point where 'mouse_x' etc need to be float values rather than int values. Both Images are drawing to a determined variable (global._mouse_x and global._mouse_y) respectively. Haven't tested in Windows YYC, but issue is not present in MacOS VM.

Images: 'True 0 0' shows variable drawing with offset value of 1. 'False 0 0' shows variable drawing without an offset value.

Steps To Reproduce

1) Set to high precision 2) Draw two lines intersecting 0,0 using constants 3) Draw to a point using varaibles Result: variable drawing will be draw 1 unit further away in both x and y TEMP FIX: Offset variable drawing by -1 on both x and y with os_type check.

Which version of GameMaker are you reporting this issue for?

IDE v2024.2.0.132 Runtime v2024.2.0.163

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

1564c268-f136-485e-b895-69e22417ec87

stuckie commented 7 months ago

This isn't something we are able to fix as different graphics drivers have different ideas on how certain primitives are drawn; particularly lines.