diff PaletteManager.cpp @ 2335:6e3ca612f132

int -> uint
author Ritor1
date Wed, 02 Apr 2014 22:05:35 +0600
parents ddb803517a48
children d6887ee81068
line wrap: on
line diff
--- a/PaletteManager.cpp	Wed Apr 02 21:05:19 2014 +0600
+++ b/PaletteManager.cpp	Wed Apr 02 22:05:35 2014 +0600
@@ -749,7 +749,7 @@
   //char v11; // [sp+19h] [bp-387h]@17
   //char v12[766]; // [sp+1Ah] [bp-386h]@17
   char Source[32]; // [sp+360h] [bp-40h]@4
-  PaletteManager *v15; // [sp+380h] [bp-20h]@1
+  //PaletteManager *v15; // [sp+380h] [bp-20h]@1
   float v16; // [sp+384h] [bp-1Ch]@7
   int v17; // [sp+388h] [bp-18h]@6
   float v18; // [sp+38Ch] [bp-14h]@7
@@ -758,7 +758,7 @@
   float a6; // [sp+398h] [bp-8h]@7
   float a3; // [sp+39Ch] [bp-4h]@7
 
-  v15 = this;
+  //v15 = this;
   v2 = (unsigned int *)&this->pPaletteIDs[1];
   result = 1;
   while ( *v2 != uPaletteID )
@@ -787,9 +787,7 @@
           RGB2HSV(&v16, &v18, a1, a2a, a3, &a6);
           v5 = a6 * 1.1;
           if ( v5 >= 0.0 && v5 >= 1.0 )
-          {
             v5 = 1.0;
-          }
           else
           {
             if ( v5 < 0.0 )
@@ -798,9 +796,7 @@
           a6 = v5;
           v6 = v18 * 0.64999998;
           if ( v6 >= 0.0 && v6 >= 1.0 )
-          {
             v6 = 1.0;
-          }
           else
           {
             if ( v6 < 0.0 )
@@ -818,12 +814,10 @@
         }
         while ( v4 < 768 );
         tex.Release();
-        result = v15->MakeBasePaletteLut(uPaletteID, v10);
+        result = this->MakeBasePaletteLut(uPaletteID, v10);
       }
       else
-      {
         result = 0;
-      }
       return result;
     }
   }
@@ -851,8 +845,6 @@
     if (pPaletteIDs[i] == idx)
       return i;
 
-
-
       v6 = (int)&pPaletteIDs[1];
       v7 = 1;
       while ( *(int *)v6 )