From 0055a7a437c6858a4d8aec082cc14910dcdef869 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 28 Sep 2006 23:09:20 +0000 Subject: [PATCH] fix unused variable warning when wxUSE_PALETTE==0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/effects.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/effects.cpp b/src/common/effects.cpp index a70f7032e2..e72542ecf4 100644 --- a/src/common/effects.cpp +++ b/src/common/effects.cpp @@ -88,14 +88,13 @@ void wxEffects::DrawSunkenEdge(wxDC& dc, const wxRect& rect, int WXUNUSED(border bool wxEffects::TileBitmap(const wxRect& rect, wxDC& dc, const wxBitmap& bitmap) { - static bool hiColour = (wxDisplayDepth() >= 16) ; - int w = bitmap.GetWidth(); int h = bitmap.GetHeight(); wxMemoryDC dcMem; #if wxUSE_PALETTE + static bool hiColour = (wxDisplayDepth() >= 16) ; if (bitmap.GetPalette() && !hiColour) { dc.SetPalette(* bitmap.GetPalette());