projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to display '...' text on editor buttons more consistently on wxGTK. This is done...
[wxWidgets.git]
/
src
/
common
/
quantize.cpp
diff --git
a/src/common/quantize.cpp
b/src/common/quantize.cpp
index 37674b2c4b40a8e078d5cab68d55bc7c9cbd64ad..57b311ec3a93b5b18b9791cf7020d1327a1a6816 100644
(file)
--- a/
src/common/quantize.cpp
+++ b/
src/common/quantize.cpp
@@
-1,5
+1,5
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: quantize.cpp
+// Name:
src/common/
quantize.cpp
// Purpose: wxQuantize implementation
// Author: Julian Smart
// Modified by:
// Purpose: wxQuantize implementation
// Author: Julian Smart
// Modified by:
@@
-30,10
+30,6
@@
/* modified by Vaclav Slavik for use as jpeglib-independent module */
/* modified by Vaclav Slavik for use as jpeglib-independent module */
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "quantize.h"
-#endif
-
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
@@
-41,17
+37,17
@@
#pragma hdrstop
#endif
#pragma hdrstop
#endif
-#ifndef WX_PRECOMP
- #include "wx/palette.h"
-#endif
-
#if wxUSE_IMAGE
#if wxUSE_IMAGE
-#include "wx/image.h"
#include "wx/quantize.h"
#include "wx/quantize.h"
+#ifndef WX_PRECOMP
+ #include "wx/palette.h"
+ #include "wx/image.h"
+#endif
+
#ifdef __WXMSW__
#ifdef __WXMSW__
-#include "wx/msw/private.h"
+
#include "wx/msw/private.h"
#endif
#include <stdlib.h>
#endif
#include <stdlib.h>
@@
-77,7
+73,7
@@
typedef unsigned short UINT16;
typedef signed short INT16;
typedef unsigned short UINT16;
typedef signed short INT16;
-#if
ndef __WATCOMC__
+#if
!(defined(__WATCOMC__) && (defined(__WXMSW__) || defined(__WXMOTIF__)))
typedef signed int INT32;
#endif
typedef signed int INT32;
#endif
@@
-1625,7
+1621,9
@@
bool wxQuantize::Quantize(const wxImage& src, wxImage& dest,
delete[] g;
delete[] b;
}
delete[] g;
delete[] b;
}
-#endif // wxUSE_PALETTE
+#else // !wxUSE_PALETTE
+ wxUnusedVar(pPalette);
+#endif // wxUSE_PALETTE/!wxUSE_PALETTE
return true;
}
return true;
}
@@
-1656,4
+1654,3
@@
bool wxQuantize::Quantize(const wxImage& src,
#endif
// wxUSE_IMAGE
#endif
// wxUSE_IMAGE
-