Jump to content

Dead Cells - Ultrawide Fix


2 Screenshots

About This File

I made a Ultrawide Fix for Dead Cells (inspired by the work from mana2000). Just extract the files into the game root folder.

Tested with the latest Steam and GOG version at 2560x1080, 3440x1440 and 3840x1600.

You can buy me a coffee if you like my work.

Password is always: pcgw





User Feedback

Recommended Comments

Hi, thanks for the patch! however, I cant seem to get it working with extracting the files into the game file. Has this been patched?

Share this comment


Link to comment
Share on other sites

ITS WORKING Y'ALL! 🙂

As of 5/23/2025, this ultrawide fix works by editing one of the shader files used by Dead Cells. After extracting the mod (https://community.pcgamingwiki.com/files/file/2504-dead-cells-ultrawide-fix/), in each folder (only need 1 of the 4), you should have three files and one folder:

  • d3d11.dll
  • d3dcompiler_46.dll
  • d3dx.ini
  • ShaderFixes (folder)

Inside the ShaderFixes folder, there will be a file named:

  • cc2a82ee0453aea8-vs_replace.txt

Open that file in a text editor and look for the following lines:

  • if (o0.x > X1_OFFSET) { o0.x += X2_OFFSET; }
    else if (o0.x < -X1_OFFSET) { o0.x -= X2_OFFSET; }

Replace X1_OFFSET and X2_OFFSET (these are actual numbers in the file) with the values that match your resolution from the table below. ... anything works, this should be enough to determine your preferred ratio, just do the math if you don't see yours. 😉

Resolution === Aspect Ratio === X1_OFFSET === X2_OFFSET
2560x1080  === 21:9         === 0.799     === 0.22
3440x1440  === 21:9         === 0.789     === 0.21
3840x1600  === 21:9         === 0.747     === 0.25
3840x1080  === 32:9         === 0.494     === 0.52
5120x1440  === 32:9         === 0.494     === 0.52
3840x1200  === 32:10        === 0.622     === 0.38
5120x2160  === 64:27        === 0.494     === 0.52
5760x1080  === 48:9         === 0.329     === 0.68
7680x1440  === 48:9         === 0.329     === 0.68
6880x2880  === 43:18        === 0.399     === 0.60

These values define where the game begins stretching the scene to fill a wider aspect ratio (X1), and how far it pulls those edges outward (X2). Picking the right pair ensures you get a wider field of view without breaking the UI.

***Important***: Be sure to run the game in Maximized Windowed Mode, not Fullscreen or Borderless, to avoid HUD stretching. This setting preserves UI integrity while allowing proper ultrawide rendering.

After you edit the offset values, save. Then drag the follow files/folders into C:\Program Files (x86)\Steam\steamapps\common\Dead Cells and enjoy!

  • d3d11.dll
  • d3dcompiler_46.dll
  • d3dx.ini
  • ShaderFixes (folder)
    • cc2a82ee0453aea8-vs_replace.txt

32-9.png

Share this comment


Link to comment
Share on other sites

On 5/23/2025 at 9:36 AM, weareborg said:

ITS WORKING Y'ALL! 🙂

As of 5/23/2025, this ultrawide fix works by editing one of the shader files used by Dead Cells. After extracting the mod (https://community.pcgamingwiki.com/files/file/2504-dead-cells-ultrawide-fix/), in each folder (only need 1 of the 4), you should have three files and one folder:

  • d3d11.dll
  • d3dx.ini
  • nvapi64.dll
  • ShaderFixes (folder)

Inside the ShaderFixes folder, there will be a file named:

  • cc2a82ee0453aea8-vs_replace.txt

Open that file in a text editor and look for the following lines:

  • if (o0.x > X1_OFFSET) { o0.x += X2_OFFSET; }
    else if (o0.x < -X1_OFFSET) { o0.x -= X2_OFFSET; }

Replace X1_OFFSET and X2_OFFSET (these are actual numbers in the file) with the values that match your resolution from the table below. ... anything works, this should be enough to determine your preferred ratio, just do the math if you don't see yours. 😉

Resolution === Aspect Ratio === X1_OFFSET === X2_OFFSET
2560x1080  === 21:9         === 0.799     === 0.22
3440x1440  === 21:9         === 0.789     === 0.21
3840x1600  === 21:9         === 0.747     === 0.25
3840x1080  === 32:9         === 0.494     === 0.52
5120x1440  === 32:9         === 0.494     === 0.52
3840x1200  === 32:10        === 0.622     === 0.38
5120x2160  === 64:27        === 0.494     === 0.52
5760x1080  === 48:9         === 0.329     === 0.68
7680x1440  === 48:9         === 0.329     === 0.68
6880x2880  === 43:18        === 0.399     === 0.60

These values define where the game begins stretching the scene to fill a wider aspect ratio (X1), and how far it pulls those edges outward (X2). Picking the right pair ensures you get a wider field of view without breaking the UI.

***Important***: Be sure to run the game in Maximized Windowed Mode, not Fullscreen or Borderless, to avoid HUD stretching. This setting preserves UI integrity while allowing proper ultrawide rendering.

After you edit the offset values, save. Then drag the follow files/folders into C:\Program Files (x86)\Steam\steamapps\common\Dead Cells and enjoy!

  • d3d11.dll
  • d3dx.ini
  • nvapi64.dll
  • ShaderFixes (folder)
    • cc2a82ee0453aea8-vs_replace.txt

32-9.png

When you say Maximized Windowed Mode, do you mean "Fullscreen Windowed"?  I downloaded the files to play this at 5120x1440 so I used these as the offsets:
5120x1440  === 32:9         === 0.494     === 0.52

My problem is that my UI is being stretched per the screenshot (using the Castlevania DLC on Steam btw).  This is in Fullscreen Windowed mode:
qq.PNG

And this is in Windowed mode maximized (it loses the widescreen effect):

qq2.thumb.PNG.c4a5aca2b1b81c640285c74de6549bbd.PNG

I did notice that the file "nvapi64.dll" doesn't seem to exist in the provided download.  Instead, I have "d3dcompiler_46".  Not sure if this has anything to do with it.  Hopefully I can get this sorted.  Appreciate you, thanks.

Share this comment


Link to comment
Share on other sites

On 6/6/2025 at 11:20 PM, mikeyakson said:

When you say Maximized Windowed Mode, do you mean "Fullscreen Windowed"?  I downloaded the files to play this at 5120x1440 so I used these as the offsets:
5120x1440  === 32:9         === 0.494     === 0.52

My problem is that my UI is being stretched per the screenshot (using the Castlevania DLC on Steam btw).  This is in Fullscreen Windowed mode:
qq.PNG

And this is in Windowed mode maximized (it loses the widescreen effect):

qq2.thumb.PNG.c4a5aca2b1b81c640285c74de6549bbd.PNG

I did notice that the file "nvapi64.dll" doesn't seem to exist in the provided download.  Instead, I have "d3dcompiler_46".  Not sure if this has anything to do with it.  Hopefully I can get this sorted.  Appreciate you, thanks.

(>^.^)><3 
Thanks for catching the copy/paste error. I've corrected my post to "d3dcompiler_46" rather than "nvapi64.dll".

For your UI Stretch problem, you need to play in windowed mode, then maximize (as you have done). The reason you are losing the super ultra widescreen effect is because your:

  • if (o0.x > X1_OFFSET) { o0.x += X2_OFFSET; }
    else if (o0.x < -X1_OFFSET) { o0.x -= X2_OFFSET; }

It needs tweaking, as its based on the window's X:Y ratio (not pixels) and its easy to get it off by a bit. If you're using windows 11 (like me) then your tool bar is fixed to the bottom. I've added software to allow me move my tool bar to right alignment (like in windows 10 & prior). This creates a small difference in our window's ratios, so you (and most people) need bust out the calculator or guess until it looks good. Please share your maths here if you get it looking pretty.

To provide some assurance it will work, play in windowed (but don't maximize), then click and drag the window until it is in a true 32:9 ratio. See attached gif for evidence its working with "Return to Castlevania" DLC.

LMK if this helps!

calibrate.gif

Share this comment


Link to comment
Share on other sites

On 6/11/2025 at 6:54 PM, weareborg said:

(>^.^)><3 
Thanks for catching the copy/paste error. I've corrected my post to "d3dcompiler_46" rather than "nvapi64.dll".

For your UI Stretch problem, you need to play in windowed mode, then maximize (as you have done). The reason you are losing the super ultra widescreen effect is because your:

  • if (o0.x > X1_OFFSET) { o0.x += X2_OFFSET; }
    else if (o0.x < -X1_OFFSET) { o0.x -= X2_OFFSET; }

It needs tweaking, as its based on the window's X:Y ratio (not pixels) and its easy to get it off by a bit. If you're using windows 11 (like me) then your tool bar is fixed to the bottom. I've added software to allow me move my tool bar to right alignment (like in windows 10 & prior). This creates a small difference in our window's ratios, so you (and most people) need bust out the calculator or guess until it looks good. Please share your maths here if you get it looking pretty.

To provide some assurance it will work, play in windowed (but don't maximize), then click and drag the window until it is in a true 32:9 ratio. See attached gif for evidence its working with "Return to Castlevania" DLC.

LMK if this helps!

calibrate.gif

You were right about tweaking it.  This is what worked for me with the Windows 10 taskbar on the bottom of the screen and not on autohide:

if(o0.x > 0.465){o0.x += 0.535;}else{
     if(o0.x < -0.465){o0.x -= 0.535;}

Thanks for the advice!  It's nearly perfect.  The only thing I notice now is that there is pop in textures and text that is not usually rendered is blurred.  Do you know if any of the settings in the ShaderFixes file increase the render distance?  Would love to have my cake and eat it too. :)

qq.PNG

qq2.PNG

qq3.PNG

Share this comment


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Found PCGamingWiki useful? Please consider making a Donation or visiting our Patreon.
  • Who's Online   1 Member, 0 Anonymous, 362 Guests (See full list)

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Member Statistics

    11,929
    Total Members
    3,870
    Most Online
    dufylo
    Newest Member
    dufylo
    Joined
×
×
  • Create New...