From 3c754ec343b2cfb3bdc663c40e36a7efe7969744 Mon Sep 17 00:00:00 2001 From: Aaron Robinson Date: Fri, 28 Apr 2006 01:21:23 +0000 Subject: [PATCH] cleanup unnecessary structs --- Source/Win32/Cxbx/jpegdec/jpegdec.cpp | 68 +++------------------------ 1 file changed, 6 insertions(+), 62 deletions(-) diff --git a/Source/Win32/Cxbx/jpegdec/jpegdec.cpp b/Source/Win32/Cxbx/jpegdec/jpegdec.cpp index 444e42fb9..265f0a81d 100644 --- a/Source/Win32/Cxbx/jpegdec/jpegdec.cpp +++ b/Source/Win32/Cxbx/jpegdec/jpegdec.cpp @@ -36,60 +36,6 @@ #include #include -#include -typedef struct tagBITMAPFILEHEADER -{ - uint16 bfType; - uint32 bfSize; - uint16 bfReserved1; - uint16 bfReserved2; - uint32 bfOffBits; -} -BITMAPFILEHEADER; -#include - -typedef struct tagBITMAPINFOHEADER -{ - uint32 biSize; - sint32 biWidth; - sint32 biHeight; - uint16 biPlanes; - uint16 biBitCount; - uint32 biCompression; - uint32 biSizeImage; - sint32 biXPelsPerMeter; - sint32 biYPelsPerMeter; - uint32 biClrUsed; - uint32 biClrImportant; -} -BITMAPINFOHEADER; - -#include -typedef struct tagRGBTRIPLE -{ - uint08 rgbtBlue; - uint08 rgbtGreen; - uint08 rgbtRed; -} -RGBTRIPLE; -#include - -typedef struct tagRGBQUAD -{ - uint08 rgbBlue; - uint08 rgbGreen; - uint08 rgbRed; - uint08 rgbReserved; -} -RGBQUAD; - -typedef struct tagBITMAPINFO -{ - BITMAPINFOHEADER bmiHeader; - RGBQUAD bmiColors[1]; -} -BITMAPINFO; - extern "C" { #include "jpeglib.h" @@ -183,19 +129,17 @@ uint08 *jpeg2bmp(uint08 *jpeg, uint32 jpegSize, uint32 *bmpSize, uint32 *bmpWidt // re-order color data { - RGBTRIPLE *rgbData = (RGBTRIPLE*)buffer; - uint32 v=0; for(v=0;v