Fixed the mobile stretched interface on portrait mode in BF1942 by modding the engine
This is a dev post classified by AGK Intelligence as Mobile & desktop (a tutorial), kept by the Dev Radar because it carries real work, not commentary.
Fixed the mobile stretched interface on portrait mode in BF1942 by modding the engine Claude Code told me how it did it: "1. Spotting the HUD: 3D world draws use a perspective projection, where far things look smaller. The HUD uses a flat one. I can tell them apart from the projection matrix the game sets before each draw. 2. Measuring each element: before drawing a HUD piece (the ticket count, the map, an ammo icon), I calculate on the CPU where its corners land on screen. That uses the same matrix math the graphics card would do. 3. Squeezing it back: I shrink its height by that 2.9× fa
Posted by @levelsio (989.8k followers) 1 h ago · 52 likes · 13.4k views · view the original post on X. Kept by the Dev Radar as Mobile & desktop.
More dev work like this
- Another company's native rewrite shouldn't set your roadmap. What would moving away from… — @callstackio
- Resolvi fazer um port de um dos meu primeiros projetos com IA: o FrankMD (que é um… — @AkitaOnRails
- 想把配音、声音克隆和语音转写放在一起处理?可以看看开源工具 VoiceStudio(原 OmniVoice Studio)。 — @bkdgiffug
- Your coding agent can edit your Electron app. Let it inspect the running window, too. — @DanKornas
- Apple Releases Safari Technology Preview 256 With Bug Fixes and Performance Improvements… — @MacRumors
- I managed to port Battlefield 1942 to mobile web too — @levelsio
- Things are getting wild — @abdullababakre
- 想在本地养一个 Live2D AI 伴侣?试试开源项目 Open-LLM-VTuber。 — @bkdgiffug
Every post is read and classified by AGK Intelligence: what it is, which market it belongs to, and whether the link is a real tool. 31.7k posts from 5k X accounts over the last 21 days, 9.4k tools, 12 markets. New posts are collected several times an hour and the full ranking is recomputed every hour — last update 2026-11-05 14:03 UTC. Full method.