// Name: src/common/imagtga.cpp
// Purpose: wxImage TGA handler
// Author: Seth Jackson
-// CVS-ID: $Id$
// Copyright: (c) 2005 Seth Jackson
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
image->Create(width, height);
- if (!image->Ok())
+ if (!image->IsOk())
{
return wxTGA_MEMERR;
}
case 1:
{
- unsigned char r;
- unsigned char g;
- unsigned char b;
+ unsigned char r = 0;
+ unsigned char g = 0;
+ unsigned char b = 0;
// No compression read the data directly to imageData.
case 9:
{
- unsigned char r;
- unsigned char g;
- unsigned char b;
+ unsigned char r = 0;
+ unsigned char g = 0;
+ unsigned char b = 0;
// Decode the RLE data.