# HG changeset patch # User Mike Becker # Date 1747077262 -7200 # Node ID 581c1735fb27bfff6d003d04219d32fd53766f09 # Parent 830608f7e7d9e1c46fa8121607b2f2f8b9b4ab0b fix texture scaling diff -r 830608f7e7d9 -r 581c1735fb27 src/texture.c --- a/src/texture.c Mon May 12 21:13:24 2025 +0200 +++ b/src/texture.c Mon May 12 21:14:22 2025 +0200 @@ -169,9 +169,9 @@ return factors; } asc_vec2f uv_scale = factors; - uv_scale.u *= (float) tex->width; - uv_scale.u /= (float) surface_dimension.width; - uv_scale.v *= (float) tex->height; - uv_scale.v /= (float) surface_dimension.height; + uv_scale.u *= (float) surface_dimension.width; + uv_scale.u /= (float) tex->width; + uv_scale.v *= (float) surface_dimension.height; + uv_scale.v /= (float) tex->height; return uv_scale; }