{"id":101,"date":"2026-10-22T18:13:51","date_gmt":"2026-10-22T22:13:51","guid":{"rendered":"https:\/\/oerinet.net\/blog\/won-half-life-native-windows-11\/"},"modified":"2026-10-22T18:13:51","modified_gmt":"2026-10-22T22:13:51","slug":"won-half-life-native-windows-11","status":"publish","type":"post","link":"https:\/\/oerinet.net\/blog\/won-half-life-native-windows-11\/","title":{"rendered":"Making WON Half-Life Run Natively on Windows 11"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The 2002 non-Steam build of Half-Life now runs at native resolution on Windows 11, with no title-bar scripts, window-size maths or hidden taskbar. It took one drop-in DLL and no changes to a single game file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The problem<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The WON build (hl.exe 1.1.x, from before Steam) still launches on Windows 11, but it doesn&#8217;t handle modern displays well. Fullscreen topped out at 4:3 resolutions. The workaround was OpenGL in a window, sized to the screen resolution divided by the Windows scaling factor, with an AutoHotkey script stripping the title bar and the taskbar hidden by hand. That&#8217;s a lot of ritual just to play a 26-year-old game.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What was actually broken<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The engine (hw.dll) is an encrypted &#8220;blob&#8221; that hl.exe decrypts and maps itself, so the first step was decrypting it to see what the launcher and engine really do. Five separate problems turned up:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>No DPI awareness.<\/strong> Windows enlarges and blurs non-aware apps at 125% or 150% scaling, which is where the &#8220;divide by scaling&#8221; maths came from.<\/li>\n\n\n\n<li><strong>A hard-coded mode list.<\/strong> Windowed and OpenGL resolutions come from a fixed table of eight sizes inside hl.exe, topping out at 1600&#215;1200. The copy here had been hex-edited years ago to squeeze widescreen sizes into it.<\/li>\n\n\n\n<li><strong>A 4:3-only filter.<\/strong> Software fullscreen modes are only accepted at exactly 4:3 and at most 1024 pixels tall.<\/li>\n\n\n\n<li><strong>A 40 MB memory cap.<\/strong> The launcher caps the engine heap at 40 MB and silently drops any resolution whose framebuffer and surface cache won&#8217;t fit, which rules out 1440p and 4K even in OpenGL.<\/li>\n\n\n\n<li><strong>A sloppy argument parser.<\/strong> Switches are found with a plain substring search, so <code>-w<\/code> matches inside <code>-window<\/code> and reads the next word as the width. <code>hl.exe -window -dev<\/code> asks for a width of zero and falls back to the smallest mode.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">The fix: one proxy DLL<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">hl.exe imports DirectDraw at startup, so a custom <code>ddraw.dll<\/code> dropped next to it loads before any window exists. It forwards every real DirectDraw call to the system DLL and fixes the rest in memory. Each code patch checks the exact bytes first, so nothing changes on a build it doesn&#8217;t recognise.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>DPI aware.<\/strong> The process is marked per-monitor DPI aware, so the game sees real pixels.<\/li>\n\n\n\n<li><strong>A real mode list.<\/strong> The launcher&#8217;s eight-entry table is swapped for every resolution the monitor reports, native always included. That applies to OpenGL fullscreen as well as windowed.<\/li>\n\n\n\n<li><strong>More memory.<\/strong> The heap cap goes from 40 MB to 128 MB, so large resolutions survive the memory check.<\/li>\n\n\n\n<li><strong>Borderless by default.<\/strong> The game runs as a borderless window covering the monitor. Windows treats that as fullscreen, so the taskbar gets out of the way and alt-tab is instant. Anything smaller, like the fixed 640&#215;480 menus, is centred on black.<\/li>\n\n\n\n<li><strong>Widescreen FOV.<\/strong> Half-Life stretches <code>default_fov<\/code> across the screen width, cutting off the top and bottom on widescreen. The DLL works out the matching value for the aspect ratio (106 at 16:9) and passes it on the command line.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The result is in the game&#8217;s own Video modes screen: on a 3:2 laptop, the list now runs all the way up to the panel&#8217;s native 2256&#215;1504.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"480\" src=\"https:\/\/oerinet.net\/blog\/wp-content\/uploads\/2026\/10\/half-life-video-modes-2256x1504-1.png\" alt=\"The Video modes screen listing resolutions up to the native 2256x1504\" class=\"wp-image-99\" srcset=\"https:\/\/oerinet.net\/blog\/wp-content\/uploads\/2026\/10\/half-life-video-modes-2256x1504-1.png 640w, https:\/\/oerinet.net\/blog\/wp-content\/uploads\/2026\/10\/half-life-video-modes-2256x1504-1-300x225.png 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Where it stands<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The game launches straight into native-resolution OpenGL with no scripts or manual window sizing, and the game files are untouched. Before it went near real hardware, everything was tested under Wine on Linux: menu, new game, ESC and back, sub-native resolutions and real fullscreen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Download and install<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Copy <code>ddraw.dll<\/code> and <code>hlfix.ini<\/code> from the zip into the Half-Life folder, next to <code>hl.exe<\/code>, and start the game as usual.<\/li>\n\n\n\n<li>Remove any <code>-window<\/code>, <code>-windowed<\/code>, <code>-width<\/code>, <code>-height<\/code>, <code>-w<\/code> or <code>-h<\/code> switches from your shortcuts and .bat files. hlfix sets the window mode and resolution itself.<\/li>\n\n\n\n<li>If you set &#8220;Override high DPI scaling&#8221; or other compatibility options on hl.exe&#8217;s Properties &gt; Compatibility tab, turn them off.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Every setting is documented in <code>hlfix.ini<\/code>: <code>WindowMode<\/code> (borderless, fullscreen, windowed or default), <code>Resolution<\/code> (native, a fixed size such as 2560&#215;1440, or game to use the in-game choice) and <code>Fov<\/code> (auto, off or a fixed number). Use the OpenGL renderer; software and Direct3D aren&#8217;t covered. To uninstall, delete the two files. The C source and build script are in the <code>src<\/code> folder.<\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/oerinet.net\/blog\/wp-content\/uploads\/2026\/10\/hlfix.zip\">hlfix.zip<\/a><a href=\"https:\/\/oerinet.net\/blog\/wp-content\/uploads\/2026\/10\/hlfix.zip\" class=\"wp-block-file__button wp-element-button\" download>Download<\/a><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">SHA-256: <code>defb5896af9bb496f730c033c8726589c59ed6255c94bf5ba563550c90a8ae2d<\/code><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>The 2002 non-Steam build of Half-Life now runs at native resolution on Windows 11, with no title-bar scripts, window-size maths or hidden taskbar. It took one drop-in DLL and no changes to a single game file. The problem The WON build (hl.exe 1.1.x, from before Steam) still launches on Windows 11, but it doesn&#8217;t handle &hellip; <a href=\"https:\/\/oerinet.net\/blog\/won-half-life-native-windows-11\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Making WON Half-Life Run Natively on Windows 11&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/oerinet.net\/blog\/wp-json\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oerinet.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oerinet.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oerinet.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oerinet.net\/blog\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":0,"href":"https:\/\/oerinet.net\/blog\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"wp:attachment":[{"href":"https:\/\/oerinet.net\/blog\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oerinet.net\/blog\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oerinet.net\/blog\/wp-json\/wp\/v2\/tags?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}