;==========================================================================================================
; Chrzan's Widescreen Fix
; Version: 1.1 (2025-06-06)
; Author: Man Chrzan a.k.a. Pan Szatan
;
; Discord: https://discord.gg/x9YCfyXCqV
; ModDB Page: https://www.moddb.com/mods/chrzans-widescreen-fix-for-stp-and-aw
;==========================================================================================================

 WARNING: This widescreen fix was created for version 1337 of POSTAL 2.
 Installing it on version 1000 will break the game. Get the patch if needed!
 https://www.moddb.com/games/postal-2/downloads/patch-1337

 You might also need to get "Postal 2 v1.337 [EN] Fixed EXE" if the game doesn't launch after patching it.
 https://gamecopyworld.com/games/pc_postal_2.shtml#Postal%202%20v1.337%20[EN]%20No-CD/Fixed%20EXE

 How to install and use:
 1) Open your game files.
 2) Replace all the files in the main game directory with the ones provided in this package.
 3) Start the game, go to options, video, and select your resolution and desired FOV.
 4) If you are playing version 1337 and experiencing audio issues, go to Audio options and enable Reverse Stereo
    (stereo seems to be reversed when it's DISABLED for some reason) and also change Audio Mode to Hardware 3D.
 
 NOTES: You can open the console by pressing ~ and type in "SetRes 1920x1080" and "FOV 90" to change it quickly.
 You can also open the Weapon Reposition menu by using the "FixMe" console command while holding a weapon.
 You can even bind this with a command (in case if it doesn't show up in Miscellaneous controls menu for some reason) 
 to a key using "Set Input F1 FixMe" which will bind the menu to the F1 key. Use "Set Input F1 None" to unbind.
 You can also change some settings by editing WidescreenFix.ini in the System folder.

;==========================================================================================================
; Change Log
;==========================================================================================================

 NOTE: The 1.1 version for P2 1337 was released after 1.2 for STP, so no, it's not outdated.

; 1.1
- Fixed controls bindings being displayed in Polish language. (Somehow the Shell.u file from my PL release ended up in my US build, whoopsie).  
- Changed how weapon position adjusting works, now should work with EVERYTHING (including mod weapons) without the need for weapon packages to be recompiled, yupee.
- Added all individual Widescreen Stretch settings to the options menu, because why not. You no longer need to mess with the INI file, you're welcome.
- Added "FixMe" command (Weapon Reposition menu) as an in-game bind in Miscellaneous controls menu.
- Added back letterbox (cinematic) view for cutscenes, now updated to display correctly on widescreen - thanks to crazy hacks and walk-arounds, sheesh.
- Controls and Credits screen is no longer stretched.

; 1.0
- Added more resolutions to choose from Video options.
- Fixed scaling and positioning of all HUD elements.
- FOV now adjusts according to the resolution. 
- FOV changed by the console command will stay permanently.
- Weapon viewmodels are now consistent across all resolutions and don't clip through the camera!
- Muzzle flash positions should also be consistent across most resolutions, or at least on 16:9.
- The load screen, map screen, rifle scope, and a few other elements are no longer stretched (this can be changed in WidescreenFix.ini).
- Removed and disabled the mouse smoothing feature which is broken on non-4:3 ratios.
- Disabled the letterbox (cinematic) view for all cutscenes. Couldn't easily fix it (it's hard-coded in C++). I might find some walk-around later though...
- Added weapon viewmodel customization menu. Use "Set Input F1 FixMe" to bind it to the F1 key.
- Fixed some minor elements of the HUD not displaying properly.
- Fixed issues with some damage types not being dealt properly due to a too high frame rate.
- Fixed broken rifle texture.