fix for BC++ internal compiler error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -66,8 +66,35 @@ private:
|
|||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const int nChoices = 8 ;
|
||||||
|
static const wxString bppchoices[nChoices] =
|
||||||
|
{
|
||||||
|
"1 bpp color",
|
||||||
|
"1 bpp B&W",
|
||||||
|
"4 bpp color",
|
||||||
|
"8 bpp color",
|
||||||
|
"8 bpp greyscale",
|
||||||
|
"8 bpp red",
|
||||||
|
"8 bpp own palette",
|
||||||
|
"24 bpp"
|
||||||
|
};
|
||||||
|
|
||||||
|
static const int bppvalues[nChoices] =
|
||||||
|
{
|
||||||
|
wxBMP_1BPP,
|
||||||
|
wxBMP_1BPP_BW,
|
||||||
|
wxBMP_4BPP,
|
||||||
|
wxBMP_8BPP,
|
||||||
|
wxBMP_8BPP_GREY,
|
||||||
|
wxBMP_8BPP_RED,
|
||||||
|
wxBMP_8BPP_PALETTE,
|
||||||
|
wxBMP_24BPP
|
||||||
|
};
|
||||||
|
|
||||||
// MyFrame
|
// MyFrame
|
||||||
|
|
||||||
|
|
||||||
class MyFrame: public wxFrame
|
class MyFrame: public wxFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -106,33 +133,9 @@ public:
|
|||||||
{
|
{
|
||||||
wxImage image(m_bitmap);
|
wxImage image(m_bitmap);
|
||||||
|
|
||||||
static const wxString bppchoices[8] =
|
|
||||||
{
|
|
||||||
"1 bpp color",
|
|
||||||
"1 bpp B&W",
|
|
||||||
"4 bpp color",
|
|
||||||
"8 bpp color",
|
|
||||||
"8 bpp greyscale",
|
|
||||||
"8 bpp red",
|
|
||||||
"8 bpp own palette",
|
|
||||||
"24 bpp"
|
|
||||||
};
|
|
||||||
|
|
||||||
static const int bppvalues[WXSIZEOF(bppchoices)] =
|
|
||||||
{
|
|
||||||
wxBMP_1BPP,
|
|
||||||
wxBMP_1BPP_BW,
|
|
||||||
wxBMP_4BPP,
|
|
||||||
wxBMP_8BPP,
|
|
||||||
wxBMP_8BPP_GREY,
|
|
||||||
wxBMP_8BPP_RED,
|
|
||||||
wxBMP_8BPP_PALETTE,
|
|
||||||
wxBMP_24BPP
|
|
||||||
};
|
|
||||||
|
|
||||||
int bppselection = wxGetSingleChoiceIndex("Set BMP BPP",
|
int bppselection = wxGetSingleChoiceIndex("Set BMP BPP",
|
||||||
"Set BMP BPP",
|
"Set BMP BPP",
|
||||||
WXSIZEOF(bppchoices),
|
nChoices,
|
||||||
bppchoices,
|
bppchoices,
|
||||||
this);
|
this);
|
||||||
if ( bppselection == -1 )
|
if ( bppselection == -1 )
|
||||||
|
Reference in New Issue
Block a user