changeset 347:c067c5739e1f

minor fixes
author zipi
date Wed, 20 Feb 2013 23:05:04 +0000
parents 3ee961a61d2b
children 5bc2df838558
files Bink_Smacker.cpp Bink_Smacker.h VideoPlayer.cpp mm7_2.cpp
diffstat 4 files changed, 23 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/Bink_Smacker.cpp	Wed Feb 20 22:35:47 2013 +0000
+++ b/Bink_Smacker.cpp	Wed Feb 20 23:05:04 2013 +0000
@@ -144,7 +144,7 @@
   return (smackw32_SmackBufferOpen)(a1, a2, a3, a4, a5, a6);
 }
 
-int __fastcall SmackVolumePan(long a1, long a2, _SMACK *a3, long a4, long a5, long a6)
+int __fastcall SmackVolumePan(_SMACK *a3, long a4, long a5, long a6)
 {
  __asm int 3
  return 0;
--- a/Bink_Smacker.h	Wed Feb 20 22:35:47 2013 +0000
+++ b/Bink_Smacker.h	Wed Feb 20 23:05:04 2013 +0000
@@ -168,7 +168,7 @@
 
 
 int __stdcall SmackBufferOpen(HWND a1, long a2, long a3, long a4, long a5, long a6);
-int __fastcall SmackVolumePan(long a1, long a2, _SMACK *a3, long a4, long a5, long a6);
+int __fastcall SmackVolumePan(_SMACK *a3, long a4, long a5, long a6);
 
 int __stdcall SmackGoto(_SMACK *a1, long a2);
 
--- a/VideoPlayer.cpp	Wed Feb 20 22:35:47 2013 +0000
+++ b/VideoPlayer.cpp	Wed Feb 20 23:05:04 2013 +0000
@@ -989,7 +989,7 @@
     }
     v16 = 32767;
     v11 = (signed __int64)(pSoundVolumeLevels[(char)uSoundVolumeMultiplier] * 32767.0);
-    SmackVolumePan(v8, HIDWORD(v11), v3->pSmackerMovie, 1040384, v11, 32767);
+    SmackVolumePan(v3->pSmackerMovie, 1040384, v11, 32767);
   }
 }
 
--- a/mm7_2.cpp	Wed Feb 20 22:35:47 2013 +0000
+++ b/mm7_2.cpp	Wed Feb 20 23:05:04 2013 +0000
@@ -491,10 +491,10 @@
   unsigned int v71; // [sp-4h] [bp-278h]@75
   const char *v72; // [sp-4h] [bp-278h]@93
   unsigned int v73; // [sp-4h] [bp-278h]@99
-  char Dest; // [sp+Ch] [bp-268h]@55
-  char v75; // [sp+70h] [bp-204h]@59
-  char a1; // [sp+D4h] [bp-1A0h]@57
-  char v77; // [sp+138h] [bp-13Ch]@59
+  char Dest[100]; // [sp+Ch] [bp-268h]@55
+  char v75[100]; // [sp+70h] [bp-204h]@59
+  char a1[100]; // [sp+D4h] [bp-1A0h]@57
+  char v77[100]; // [sp+138h] [bp-13Ch]@59
   GUIWindow v78; // [sp+19Ch] [bp-D8h]@99
   GUIWindow v79; // [sp+1F0h] [bp-84h]@1
   char *Str[2]; // [sp+244h] [bp-30h]@30
@@ -771,31 +771,31 @@
     v28 = *(int *)v84;
     if ( pDialogueWindow->pCurrentPosActiveItem != 2 )
       v28 = v81;
-    sprintf(&Dest, format_4E2DC8, v28);
+    sprintf(Dest, format_4E2DC8, v28);
     sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[178], pOutString);
-    strcat(&Dest, pTmpBuf2);
-    v90 = pFontArrus->CalcTextHeight(&Dest, &v79, 0, 0);
-    strcat(&Dest, "\n \n");
+    strcat(Dest, pTmpBuf2);
+    v90 = pFontArrus->CalcTextHeight(Dest, &v79, 0, 0);
+    strcat(Dest, "\n \n");
     v29 = *(int *)v84;
     if ( pDialogueWindow->pCurrentPosActiveItem != 3 )
       v29 = v81;
-    sprintf(&a1, format_4E2DC8, v29);
+    sprintf(a1, format_4E2DC8, v29);
     sprintf(pTmpBuf2,
       pGlobalTXT_LocalizationStrings[86],
       //(signed __int64)p2DEvents_minus1__20[13 * (unsigned int)ptr_507BC0->ptr_1C],
       (signed __int64)p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].fPriceMultiplier,
       v83);
-    strcat(&a1, pTmpBuf2);
-    v88 = pFontArrus->CalcTextHeight(&a1, &v79, 0, 0);
-    strcat(&a1, "\n \n");
+    strcat(a1, pTmpBuf2);
+    v88 = pFontArrus->CalcTextHeight(a1, &v79, 0, 0);
+    strcat(a1, "\n \n");
     v30 = *(int *)v84;
     if ( pDialogueWindow->pCurrentPosActiveItem != 4 )
       v30 = v81;
-    sprintf(&v77, format_4E2DC8, v30);
-    strcat(&v77, pGlobalTXT_LocalizationStrings[160]);
-    v82 = pFontArrus->CalcTextHeight(&v77, &v79, 0, 0);
-    strcat(&v77, "\n \n");
-    v75 = 0;
+    sprintf(v77, format_4E2DC8, v30);
+    strcat(v77, pGlobalTXT_LocalizationStrings[160]);
+    v82 = pFontArrus->CalcTextHeight(v77, &v79, 0, 0);
+    strcat(v77, "\n \n");
+    v75[0] = 0;
     v87 = 0;
     v31 = (signed int)window_SpeakInHouse->ptr_1C;
     if ( v31 >= 108 && v31 <= 120 )
@@ -803,9 +803,9 @@
       v32 = *(int *)v84;
       if ( pDialogueWindow->pCurrentPosActiveItem != 5 )
         v32 = v81;
-      sprintf(&v75, format_4E2DC8, v32);
-      strcat(&v75, pGlobalTXT_LocalizationStrings[611]);
-      v87 = pFontArrus->CalcTextHeight(&v75, &v79, 0, 0);
+      sprintf(v75, format_4E2DC8, v32);
+      strcat(v75, pGlobalTXT_LocalizationStrings[611]);
+      v87 = pFontArrus->CalcTextHeight(v75, &v79, 0, 0);
     }
     v33 = pDialogueWindow;
     Str[1] = (char *)pDialogueWindow;