From b2805409566af00bc15639494f5a186fbd2f16e6 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Fri, 9 Dec 2011 20:15:42 +0000 Subject: More indenting changes --- nGenEx/Pcx.h | 72 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'nGenEx/Pcx.h') diff --git a/nGenEx/Pcx.h b/nGenEx/Pcx.h index 4a209c5..147f1f8 100644 --- a/nGenEx/Pcx.h +++ b/nGenEx/Pcx.h @@ -1,15 +1,15 @@ /* Project nGenEx - Destroyer Studios LLC - Copyright © 1997-2004. All Rights Reserved. + Destroyer Studios LLC + Copyright © 1997-2004. All Rights Reserved. - SUBSYSTEM: nGenEx.lib - FILE: PCX.h - AUTHOR: John DiCamillo + SUBSYSTEM: nGenEx.lib + FILE: PCX.h + AUTHOR: John DiCamillo - OVERVIEW - ======== - PCX image file loader + OVERVIEW + ======== + PCX image file loader */ #ifndef PCX_H @@ -21,45 +21,45 @@ enum { PCX_OK, PCX_NOMEM, PCX_TOOBIG, PCX_NOFILE }; struct PcxHeader { - char manufacturer; // Always set to 10 - char version; // Always 5 for 256-color files - char encoding; // Always set to 1 - char bits_per_pixel; // Should be 8 for 256-color files - short xmin,ymin; // Coordinates for top left corner - short xmax,ymax; // Width and height of image - short hres; // Horizontal resolution of image - short vres; // Vertical resolution of image - char palette16[48]; // EGA palette; not used for 256-color files - char reserved; // Reserved for future use - char color_planes; // Color planes - short bytes_per_line; // Number of bytes in 1 line of pixels - short palette_type; // Should be 2 for color palette - char filler[58]; // Nothing but junk + char manufacturer; // Always set to 10 + char version; // Always 5 for 256-color files + char encoding; // Always set to 1 + char bits_per_pixel; // Should be 8 for 256-color files + short xmin,ymin; // Coordinates for top left corner + short xmax,ymax; // Width and height of image + short hres; // Horizontal resolution of image + short vres; // Vertical resolution of image + char palette16[48]; // EGA palette; not used for 256-color files + char reserved; // Reserved for future use + char color_planes; // Color planes + short bytes_per_line; // Number of bytes in 1 line of pixels + short palette_type; // Should be 2 for color palette + char filler[58]; // Nothing but junk }; // +--------------------------------------------------------------------+ struct PcxImage { - static const char* TYPENAME() { return "PcxImage"; } + static const char* TYPENAME() { return "PcxImage"; } - PcxImage(short w, short h, unsigned long* hibits); - PcxImage(short w, short h, unsigned char* bits, unsigned char* colors); + PcxImage(short w, short h, unsigned long* hibits); + PcxImage(short w, short h, unsigned char* bits, unsigned char* colors); - PcxImage(); - ~PcxImage(); + PcxImage(); + ~PcxImage(); - int Load(char *filename); - int Save(char *filename); + int Load(char *filename); + int Save(char *filename); - int LoadBuffer(unsigned char* buf, int len); + int LoadBuffer(unsigned char* buf, int len); - PcxHeader hdr; - unsigned char* bitmap; - unsigned long* himap; - unsigned char pal[768]; - unsigned long imagebytes; - unsigned short width, height; + PcxHeader hdr; + unsigned char* bitmap; + unsigned long* himap; + unsigned char pal[768]; + unsigned long imagebytes; + unsigned short width, height; }; // +--------------------------------------------------------------------+ -- cgit v1.1