mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Minor code edits
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
;v3.8.33
|
||||
|
||||
[Main]
|
||||
;Set to 1 if you want to use command line args to tell sfall to use another ini file
|
||||
;Set to 1 if you want to use command line arguments to tell sfall to use another ini file
|
||||
;This option is always enabled in 4.3.3/3.8.33 or later. The information is left for reference only
|
||||
UseCommandLine=0
|
||||
|
||||
|
||||
@@ -454,6 +454,7 @@ typedef HRESULT (__stdcall *DInputCreateProc)(HINSTANCE a,DWORD b,IDirectInputA*
|
||||
HRESULT __stdcall FakeDirectInputCreate(HINSTANCE a, DWORD b, IDirectInputA** c, IUnknown* d) {
|
||||
HMODULE dinput = LoadLibraryA("dinput.dll");
|
||||
if (!dinput || dinput == INVALID_HANDLE_VALUE) return -1;
|
||||
|
||||
DInputCreateProc proc = (DInputCreateProc)GetProcAddress(dinput, "DirectInputCreateA");
|
||||
if (!proc) return -1;
|
||||
|
||||
|
||||
@@ -680,12 +680,11 @@ public:
|
||||
int height = mveDesc.dwHeight;
|
||||
int pitch = dRect.Pitch / 4;
|
||||
DWORD* pBits = (DWORD*)dRect.pBits;
|
||||
BYTE* target = mveSurface;
|
||||
|
||||
while (height--) {
|
||||
int x = width;
|
||||
while (x--) pBits[x] = palette[target[x]].xRGB;
|
||||
target += width;
|
||||
while (x--) pBits[x] = palette[mveSurface[x]].xRGB;
|
||||
mveSurface += width;
|
||||
pBits += pitch;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1106,7 +1106,7 @@ void Sound::init() {
|
||||
MakeCall(0x4450C5, gdialogFreeSpeech_hack, 2);
|
||||
|
||||
// Prepare
|
||||
LoadLibraryA("quartz.dll");
|
||||
//LoadLibraryA("quartz.dll");
|
||||
CreateSndWnd();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user