/////////////////////////////////////////////////////////////////////////////
-// Name: image.cpp
+// Name: src/common/image.cpp
// Purpose: wxImage
// Author: Robert Roebling
// RCS-ID: $Id$
const double value = maximumRGB;
- double hue, saturation;
+ double hue = 0.0, saturation;
const double deltaRGB = maximumRGB - minimumRGB;
if ( wxIsNullDouble(deltaRGB) )
{
case BLUE:
hue = 4.0 + (red - green) / deltaRGB;
break;
+
+ default:
+ wxFAIL_MSG(wxT("hue not specified"));
+ break;
}
hue /= 6.0;
/////////////////////////////////////////////////////////////////////////////
-// Name: imagtiff.cpp
+// Name: src/common/imagtiff.cpp
// Purpose: wxImage TIFF handler
// Author: Robert Roebling
// RCS-ID: $Id$
return (toff_t)-1;
toff_t tofs = wx_truncate_cast(toff_t, ofs);
- wxCHECK_MSG( tofs == ofs, (toff_t)-1,
+ wxCHECK_MSG( (wxFileOffset)tofs == ofs, (toff_t)-1,
_T("TIFF library doesn't support large files") );
return tofs;
if ( ptr[column*24 + bp*3] > 0 )
{
// check only red as this is sufficient
- reverse = reverse | 128 >> bp;
+ reverse = (uint8)(reverse | 128 >> bp);
}
}
#endif // wxUSE_STREAMS
#endif // wxUSE_LIBTIFF
-
/////////////////////////////////////////////////////////////////////////////
-// Name: strconv.cpp
+// Name: src/common/strconv.cpp
// Purpose: Unicode conversion classes
// Author: Ove Kaaven, Robert Roebling, Vadim Zeitlin, Vaclav Slavik,
// Ryan Norton, Fredrik Roubert (UTF7)
}
#else // !WC_UTF16
if (buf)
- *buf++ = res;
+ *buf++ = (wchar_t)res;
len++;
#endif // WC_UTF16/!WC_UTF16
}
len += pa;
#else
if (buf)
- *buf++ = wxUnicodePUA + (unsigned char)*opsz;
+ *buf++ = (wchar_t)(wxUnicodePUA + (unsigned char)*opsz);
opsz++;
len++;
#endif
return pa;
if (buf)
- *buf++ = cc;
+ *buf++ = (wchar_t)cc;
len++;
psz += pa * sizeof(wxUint16);
}
return pa;
if (buf)
- *buf++ = cc;
+ *buf++ = (wchar_t)cc;
len++;
psz += pa * sizeof(wxUint16);
while (*(wxUint32*)psz && (!buf || len < n))
{
if (buf)
- *buf++ = *(wxUint32*)psz;
+ *buf++ = (wchar_t)(*(wxUint32*)psz);
len++;
psz += sizeof(wxUint32);
}
wxConvUTF8;
#endif // wxUSE_WCHAR_T/!wxUSE_WCHAR_T
-
-