Thanks a lot to
aqrit, i think he is the most experienced developer for all that ddraw things.
He just released the new version of his well-known ddraw.dll specially for war2.
I checked it on different systems: WinXP x64, Win Vista x32, Win7 x32, Win7 x64, Win10 R2 x64, Win2012 R2 x64.
Some of them as virtual machines, some on real computers.
This DLL works exactly as declared on all the systems i tried. And war2 behaviour is exactly the same for every OS:
Palette have been correct for all tests: alt-tab never broke it, creating game and back to chat never broke it. Random palette breaks have no been happened for me also.
PrtScr works fine in-game and saves the same picture that you can see during the game.
But here's the bug still exists while making SS in-chat:
it saves cyan screen in-chat to PCX. That is a declared behaviour and works the same on all the checked systems.
But here's a way to bypass broken SS in-chat:
You can use Alt-PrtSrc instead of PrtSrc, then screenshot will be copied to clipboard instead of PCX-file, then you can Alt-Tab, run "mspaint" or any other graphics editor and paste (Ctrl-V) the clipboard content. It's also aqrit's idea published here:
http://forum.war2.ru/index.php/topic,897.msg12196.html#msg12196Here's also a small problem with warvideo appeared:
saved video is blinking. That is expected problem, but i don't think it's critical. Just to let you know.
Also need to try live streaming software with this DLL. It's quite possible it will be blinking also, i'll check that later. I never tried to stream videos... So would be great if someone experienced in live streaming check that faster.
Here are some screenshots to show what exactly have been fixed by this patch in win8.1/win10/win2012 (comparing with original clean version of war2). I made screenshots from windows 10:
mix of letters in connection window:Spoiler
![](http://forum.war2.ru/index.php?action=dlattach;topic=1790.0;attach=403)
fixed by ddraw.dll:
![](http://forum.war2.ru/index.php?action=dlattach;topic=1790.0;attach=405)
No icons and black squares under button letters:Spoiler
![](http://forum.war2.ru/index.php?action=dlattach;topic=1790.0;attach=407)
fixed by ddraw.dll:
![](http://forum.war2.ru/index.php?action=dlattach;topic=1790.0;attach=409)
PrtScr screenshot from bnet chat in origianl war2 with no ddraw:Spoiler
![](http://forum.war2.ru/index.php?action=dlattach;topic=1790.0;attach=411)
Cyan screen with ddraw.dll:
![](http://forum.war2.ru/index.php?action=dlattach;topic=1790.0;attach=413)
Use
Alt-PrtScr instead and paste your SS into mspaint to save it. I used that way to make 4 previous screenshots.
And here's the blinking warvideo sample:
http://forum.war2.ru/index.php?action=dlattach;topic=1790.0;attach=415How to install this dll:Just copy the file ddraw.dll to war2combat directory overwriting previous file if exists. Then you just can start war2 as usual and see the changes.
fixed ftp links broken by smf -mouseyUPD by iL:
here's the updated blur-fixing version:
Here is the 10 second fix:
http://www.bitpatch.com/downloads/war2_ddraw_test2.zip
it uses hot-patching to hook some font functions to disable anti-aliasing.
UPD by iL:
the build with d3d
http://www.bitpatch.com/downloads/war2_ddraw_test3.zip
it adds an alt+enter shortcut to flip between windowed and fullscreen views.
edit: alt+enter seems to crash currently if used on the battle.net screen ![Sad :(](http://forum.war2.ru/Smileys/FlatEmoji/sad.gif)
edit: it is also missing one of the kludges to redraw the screen ... so yeah WIP
http://www.bitpatch.com/downloads/war2_ddraw_test4.zip
This *barely tested* build should have a nice speed up ( not measured ) from using a pixel shader.
It has some additional system requirements but I'm guessing everyone should still be able to run it.
Also have some problems with alt-tab.
Here is a "pass-thru" version for Win8 and Win10 users, who aren't happy with the full version.
http://www.bitpatch.com/downloads/war2_ddraw_minimal.zip
Source code on github for developers:
https://github.com/aqrit/war2_ddrawhttps://github.com/aqrit/war2_ddraw/tree/minimalddraw is also compatible with starcraft broodwar, discussion:
http://www.teamliquid.net/forum/brood-war/499943-ddraw-fix-by-aqrit