diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index cbbdc9e9ab..7d3ca2e426 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -388,13 +388,13 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, // TODO: do something with cornerSize wxUnusedVar(cornerSize); - int x, y; wxRect r = wxRectFromPRectangle(rc); wxBitmap bmp(r.width, r.height, 32); // This block is needed to ensure that the changes done to the bitmap via // pixel data object are committed before the bitmap is drawn. { + int px, py; wxAlphaPixelData pixData(bmp); // Set the fill pixels @@ -404,9 +404,9 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, int blue = cdf.GetBlue(); wxAlphaPixelData::Iterator p(pixData); - for (y=0; y