YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

In-Game: draw_text_ext_transformed() draws blurry when using fractional values for x/y and filtering is on #1926

Open iampremo opened 1 year ago

iampremo commented 1 year ago

Description

draw_text_ext_transformed() treats everything as fractional values, so when centring a string you can end up with the characters being drawn 'between' pixels when filtering is enabled. This is not a bug per se, as draw_text_ext_transformed() is generally used when the text is rotated or scaled-up, but the function can be fixed to take this case into account.

_Note that draw_textext() also does not have this issue and so the two functions will draw the same text differently.

Expected Change

Text should not appear blurry when filtering is turned on

Steps To Reproduce

  1. Start GM and Import this project.
  2. Run the game and notice no issue.
  3. Go into the Object's event and enable filtering ("gpu_set_texfilter(true)").
  4. Run the game and observe the issue.

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

Jun 23, Aug 23

Which platform(s) are you seeing the problem on?

Windows

Compiler Log File

Sample .yyz File

caitlinrmcintyre commented 1 year ago

This issue is still happening in IDE v2023.8.2.106 Runtime v2023.8.2.152