1576
Support Requests / Re: Force change resolution
« on: November 17, 2016, 11:12:22 AM »Damn!
Okay so their is a referenced string for display adapter you can find with cheat engine, etc. Change that also!
Also another tip! Try to hex ddraw.dll!
Actually, now I look at it, bne is just using standard windows gdi stuff. The DOS version would use interrupt 16 and mode 257. But wc2.exe and storm.dll only import graphics stuff from GDI32.dll and USER32.dll, so its all just device contexts...
ddraw.dll (directX) isn't imported by anything, in the traditional way. It's being dynamically loaded by one of the sneaky little embedded code modules blizz use. It seems they only use:
CreateBackSurface
SetPalette
CreatePrimarySurface
SetDisplayMode
DirectDrawCreate
Which is just a very basic set of initialization routines. Also there's a help message in there for the event where it can't use directX, telling you to set your desktop to 640x480x256.
There's a few calls to GetDesktopWindow followed by GetDC, this gets the device context of the windows desktop (being the top level window), so it looks like its, in effect just resizing the desktop to 640x480 then writing directly to it. Possibly. At lot of it relates to dialog boxes and stuff, hard to tell without spending more time. Anyway, anyone who understands standard windows GDI programming should be able to have a go at it...
( all the other stuff still applies, just the 257 code may or may not be what directX uses )
------edit:
Code: [Select]
HRESULT SetDisplayMode(
dwWidth,
dwHeight,
dwBPP,
dwRefreshRate,
dwFlags );
... so bne is a wonder of modern technology