RepositoryPythonRORomania
byddha

byddha/terarria-zoom-patcher

Terraria zoom patcher. Useful for widescreen / ultrawide monitors

64stars
1forks
1issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: widescreen-fix

#1 Repository of the week

1
TINIX TRENDING·Topic: terraria-hack

#1 Repository of the week

1
TINIX TRENDING·Topic: ultrawide

#1 Repository of the week

Terraria Zoom Patcher

Terraria calculates minimum zoom as max(1.0, screenWidth/1920, screenHeight/1200). On ultrawide (3440x1440), this means 1.79x minimum - the slider shows "100%" but you're actually at 179%, seeing the same world as a 1920x1200 monitor. This patcher removes that limit.

Terraria 1.4.5.6 has a hidden SupportWideScreen flag that skips the forced zoom-in and raises the render target cap. ReLogic looks to be planning to expose this natively, so the need for this patcher should be temporary.

Requirements

Python available in PATH

Usage

python patcher.py <PATH_TO_TERRARIA_EXE>

For displays exceeding 4096 in any dimension (e.g. 5120x1440 super ultrawide, 7680x4320 8K):

python patcher.py <PATH_TO_TERRARIA_EXE> --8k

[!NOTE] Windows users: check if python is installed with python --version. If not, install with winget install Python.

One-liner (Linux)

curl -sSL https://raw.githubusercontent.com/byddha/terarria-zoom-patcher/refs/heads/main/patcher.py | python - <PATH_TO_TERRARIA_EXE>

One-liner (Windows PowerShell)

powershell -NoProfile -ExecutionPolicy ByPass -Command "& { (Invoke-WebRequest -Uri https://raw.githubusercontent.com/byddha/terarria-zoom-patcher/refs/heads/main/patcher.py).Content | python - '<PATH_TO_TERRARIA_EXE>' }"

Backup

The script creates Terraria.exe.bak before patching. To restore, delete Terraria.exe and rename Terraria.exe.bak back.

What it patches

Flips SupportWideScreen from false to true in Main's static initializer. With this enabled, the game:

  1. Sets ForcedMinimumZoom = 1.0 - removes forced zoom-in
  2. Raises render target cap from 1920 to 4096 (on HiDef profile) - fixes culling at low zoom

With --8k, additionally patches the 4096 caps to 8192:

  1. maxScreenW, maxScreenH, _renderTargetMaxSize in SetGraphicsProfileInternal - allows window/backbuffer sizes above 4096
  2. Render target dimension cap in InitTargets - allows world rendering above 4096

Screenshots (3440x1440)

Pre-fix (zoom "100%" / actual 177%): image

Post-fix (zoom 100%): image

Post-fix (zoom 125%): image

Post-fix (zoom 150%): image

Similar Projects

Discover other similar projects and AI models.

RepositoryHTML
DwarfDainuc/Terraria-Plr-resocket-Editor

A Python library and command-line tool designed for working with Terraria 1.4.5.6 (.plr) player files.

2
Nov 5, 2026
RepositoryC++
ThirteenAG/WidescreenFixesPack

Plugins to make or improve widescreen resolutions support in games, add more features and fix bugs.

3.4k
Nov 28, 2026
RepositoryC++
alphayellow1/AlphaYellowWidescreenFixes

Collection of memory patches that aim to fix resolution, aspect ratio, FOV, HUD and other things in old PC games.

130
Nov 27, 2026
RepositoryC++
RayesDiyab/KMRP-KOTOR-Modern-Restoration-Patch

Resolution-aware interface patch for Star Wars: Knights of the Old Republic (2003): fonts, layouts, inventory and area map sized for 66 built-in resolutions from 800x600 to 15360x8640 and any other from 4:3 to 32:9, with native controller support. Windows, macOS and Linux (Proton).

97
Nov 15, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.4k
Dec 2, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.6k
Nov 27, 2026
RepositoryC#
tModLoader/tModLoader

A mod to make and play Terraria mods. Supports Terraria 1.4 (and earlier) installations

5.8k
Nov 29, 2026
RepositoryRust
misprit7/computerraria

A fully compliant RISC-V computer made inside the game Terraria

3.9k
Aug 3, 2026