summaryrefslogtreecommitdiff
path: root/noiseutils/warnings.diff
blob: 24fc13caf5278ac450c4207b47c7f840a6234ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
diff -u /home/snakebite/noiseutils/noiseutils.cpp ./noiseutils.cpp
--- /home/snakebite/noiseutils/noiseutils.cpp	2005-06-07 21:49:24.000000000 +0200
+++ ./noiseutils.cpp	2011-05-07 14:32:36.000000000 +0200
@@ -671,7 +671,6 @@
   int height = m_pSourceNoiseMap->GetHeight ();
 
   int bufferSize = CalcWidthByteCount (width);
-  int destSize   = bufferSize * height;
 
   // This buffer holds one horizontal line in the destination file.
   noise::uint8* pLineBuffer = NULL;
diff -u /home/snakebite/noiseutils/noiseutils.h ./noiseutils.h
--- /home/snakebite/noiseutils/noiseutils.h	2005-06-07 21:46:42.000000000 +0200
+++ ./noiseutils.h	2011-05-07 14:32:06.000000000 +0200
@@ -134,17 +134,17 @@
         {
         }
 
-        /// Value of the alpha (transparency) channel.
-        noise::uint8 alpha;
-
-        /// Value of the blue channel.
-        noise::uint8 blue;
+        /// Value of the red channel.
+        noise::uint8 red;
 
         /// Value of the green channel.
         noise::uint8 green;
 
-        /// Value of the red channel.
-        noise::uint8 red;
+        /// Value of the blue channel.
+        noise::uint8 blue;
+
+        /// Value of the alpha (transparency) channel.
+        noise::uint8 alpha;
 
     };
 
@@ -1296,13 +1296,13 @@
         /// Name of the file to write.
         std::string m_destFilename;
 
+        /// A pointer to the noise map that will be written to the file.
+        NoiseMap* m_pSourceNoiseMap;
+
         /// The distance separating adjacent points in the noise map, in
         /// meters.
         float m_metersPerPoint;
 
-        /// A pointer to the noise map that will be written to the file.
-        NoiseMap* m_pSourceNoiseMap;
-
     };
 
     /// Abstract base class for a noise-map builder