chairclr / TerraAngel

A Terraria utility client
MIT License
38 stars 8 forks source link

Zoom issues at higher resolutions #33

Closed sk4rm closed 1 year ago

sk4rm commented 1 year ago

Terraria version: 1.4.4.9 TerraAngel version: https://github.com/CEO-Chair/TerraAngel/commit/3319f8c7201ec85da6c79a2a4e91583b1a747a73


Initial zoom levels (100%) here differ from vanilla.

Vanilla, 2880x1800 (16:10), borderless window, zoom: 100%, UI scale: 100%:

TerraAngel, 2880x1800 (16:10), borderless window, zoom: 100%, UI scale: 100%:

TerraAngel, 2880x1800 (16:10), windowed, main menu (not cropped)


There are also some misaligned texts under Settings Menu > Video:

chairclr commented 1 year ago

Alright, I'll look into this tomorrow.

chairclr commented 1 year ago

I am unable to reproduce the zoom issue on 3440x1440

image image

chairclr commented 1 year ago

I am similarly unable to reproduce this bug on 1600x1000 image image

chairclr commented 1 year ago

Same goes for fullscreen and borderless windowed

sk4rm commented 1 year ago

I messed around with my Windows display resolutions and found that it seems to be affected by the scaling.

I normally use 200% scaling but at 100% it works fine, with the caveat that TerraAngel's UI and everything else outside the game becomes tiny.

The above is consistent with windowed, borderless, and fullscreen. Everything else stays the same including the misaligned settings text and Vanilla behavior.

sk4rm commented 1 year ago

I think I found a fix: by overriding the scaling to be performed by the application.

Results

TerraAngel's UI still very small, however, albeit still usable.

chairclr commented 1 year ago

This may be an issue with the backend for windowing in TerraAngel being different than the normal game