supress some unused parameter warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -349,6 +349,10 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize,
|
|||||||
ColourAllocated outline, int alphaOutline,
|
ColourAllocated outline, int alphaOutline,
|
||||||
int /*flags*/) {
|
int /*flags*/) {
|
||||||
#ifdef wxHAVE_RAW_BITMAP
|
#ifdef wxHAVE_RAW_BITMAP
|
||||||
|
|
||||||
|
// TODO: do something with cornerSize
|
||||||
|
wxUnusedVar(cornerSize);
|
||||||
|
|
||||||
int x, y;
|
int x, y;
|
||||||
wxRect r = wxRectFromPRectangle(rc);
|
wxRect r = wxRectFromPRectangle(rc);
|
||||||
wxBitmap bmp(r.width, r.height, 32);
|
wxBitmap bmp(r.width, r.height, 32);
|
||||||
@@ -408,6 +412,9 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize,
|
|||||||
hdc->DrawBitmap(bmp, r.x, r.y, true);
|
hdc->DrawBitmap(bmp, r.x, r.y, true);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
wxUnusedVar(cornerSize);
|
||||||
|
wxUnusedVar(alphaFill);
|
||||||
|
wxUnusedVar(alphaOutline);
|
||||||
RectangleDraw(rc, outline, fill);
|
RectangleDraw(rc, outline, fill);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -349,6 +349,10 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize,
|
|||||||
ColourAllocated outline, int alphaOutline,
|
ColourAllocated outline, int alphaOutline,
|
||||||
int /*flags*/) {
|
int /*flags*/) {
|
||||||
#ifdef wxHAVE_RAW_BITMAP
|
#ifdef wxHAVE_RAW_BITMAP
|
||||||
|
|
||||||
|
// TODO: do something with cornerSize
|
||||||
|
wxUnusedVar(cornerSize);
|
||||||
|
|
||||||
int x, y;
|
int x, y;
|
||||||
wxRect r = wxRectFromPRectangle(rc);
|
wxRect r = wxRectFromPRectangle(rc);
|
||||||
wxBitmap bmp(r.width, r.height, 32);
|
wxBitmap bmp(r.width, r.height, 32);
|
||||||
@@ -408,6 +412,9 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize,
|
|||||||
hdc->DrawBitmap(bmp, r.x, r.y, true);
|
hdc->DrawBitmap(bmp, r.x, r.y, true);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
wxUnusedVar(cornerSize);
|
||||||
|
wxUnusedVar(alphaFill);
|
||||||
|
wxUnusedVar(alphaOutline);
|
||||||
RectangleDraw(rc, outline, fill);
|
RectangleDraw(rc, outline, fill);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user