netpanzer-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netPanzer-CVS] netpanzer/src/Lib/2D Surface.cpp


From: Matthias Braun
Subject: [netPanzer-CVS] netpanzer/src/Lib/2D Surface.cpp
Date: Sat, 25 Oct 2003 11:41:59 -0400

CVSROOT:        /cvsroot/netpanzer
Module name:    netpanzer
Branch:         
Changes by:     Matthias Braun <address@hidden> 03/10/25 11:41:59

Modified files:
        src/Lib/2D     : Surface.cpp 

Log message:
        removed some unused structs

Patches:
Index: netpanzer/src/Lib/2D/Surface.cpp
diff -u netpanzer/src/Lib/2D/Surface.cpp:1.39 
netpanzer/src/Lib/2D/Surface.cpp:1.40
--- netpanzer/src/Lib/2D/Surface.cpp:1.39       Sat Oct 25 11:26:05 2003
+++ netpanzer/src/Lib/2D/Surface.cpp    Sat Oct 25 11:41:58 2003
@@ -68,50 +68,6 @@
     }
 } // end orderCoords
 
-#ifdef MSVC
-#pragma pack(1)
-#endif
-
-struct PcxHeader
-{
-    uint8_t   manufacturer;
-    uint8_t   version;
-    uint8_t   encoding;
-    uint8_t   bits_per_pixel;
-    uint16_t   x,y;                    //upper left of image
-    uint16_t   width, height;          //size of the image
-    uint16_t   horz_res;               //horizontal resolution
-    uint16_t   vert_res;               //vertical resolution
-    uint8_t   ega_palette[48];        //who cares?
-    uint8_t   reserved;
-    uint8_t   num_color_planes;
-    uint16_t   bytes_per_line;
-    uint16_t   palette_type;
-    uint8_t   padding[58];
-}
-__attribute__((packed));
-
-class SurfaceHeader
-{
-public:
-    uint32_t pixX;
-    uint32_t pixY;
-    uint32_t offsetX;
-    uint32_t offsetY;
-    uint32_t frameCount;
-    float fps;
-
-}
-__attribute__((packed)); // end SurfaceHeader
-
-struct PIC_HEAD
-{
-    uint32_t xPix;         // Horizontal pixel count.
-    uint32_t yPix;         // Vertical pixel count.
-    uint32_t frameCount;    // Number of frames.
-}
-__attribute__((packed));
-
 class BitmapFileHeader
 {
 public:
@@ -169,6 +125,10 @@
     biClrUsed = file->readULE32();
     biClrImportant = file->readULE32();
 }
+
+#ifdef MSVC
+#pragma pack(1)
+#endif
 
 class RGBQuad
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]