git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@909
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#pragma implementation "image.h"
#endif
#pragma implementation "image.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
+
#include "wx/image.h"
#include "wx/debug.h"
#include "wx/log.h"
#include "wx/image.h"
#include "wx/debug.h"
#include "wx/log.h"
unsigned char *ptr, **lines, *ptr2;
int transp,bit_depth,color_type,interlace_type;
png_uint_32 width, height;
unsigned char *ptr, **lines, *ptr2;
int transp,bit_depth,color_type,interlace_type;
png_uint_32 width, height;
- for (unsigned int i = 0; i < height; i++)
+ for (i = 0; i < height; i++)
{
if ((lines[i] = (unsigned char *)malloc(width * (sizeof(unsigned char) * 4))) == NULL)
{
{
if ((lines[i] = (unsigned char *)malloc(width * (sizeof(unsigned char) * 4))) == NULL)
{
- for (unsigned int i = 0; i < height; i++) free( lines[i] );
+ for (i = 0; i < height; i++) free( lines[i] );
free( lines );
if (transp)
image->SetMaskColour( 255, 0, 255 );
free( lines );
if (transp)
image->SetMaskColour( 255, 0, 255 );
unsigned char r, g, b;
}
*cmap = NULL;
unsigned char r, g, b;
}
*cmap = NULL;
#define BI_RGB 0
#define BI_RLE8 1
#define BI_RLE4 2
#define BI_BITFIELDS 3
#define BI_RGB 0
#define BI_RLE8 1
#define BI_RLE4 2
#define BI_BITFIELDS 3