avoid shadowed variable warnings with VS2015
This commit is contained in:
@@ -1074,13 +1074,13 @@ bool wxMenuItem::OnDrawItem(wxDC& dc, const wxRect& rc,
|
||||
SIZE accelSize;
|
||||
::GetTextExtentPoint32(hdc, accel.c_str(), accel.length(), &accelSize);
|
||||
|
||||
int flags = DST_TEXT;
|
||||
flags = DST_TEXT;
|
||||
// themes menu is using specified color for disabled labels
|
||||
if ( data->MenuLayout() == MenuDrawData::Classic &&
|
||||
(stat & wxODDisabled) && !(stat & wxODSelected) )
|
||||
flags |= DSS_DISABLED;
|
||||
|
||||
int x = rcText.right - data->ArrowMargin.GetTotalX()
|
||||
x = rcText.right - data->ArrowMargin.GetTotalX()
|
||||
- data->ArrowSize.cx
|
||||
- data->ArrowBorder;
|
||||
|
||||
@@ -1090,7 +1090,7 @@ bool wxMenuItem::OnDrawItem(wxDC& dc, const wxRect& rc,
|
||||
else
|
||||
x -= m_parentMenu->GetMaxAccelWidth();
|
||||
|
||||
int y = rcText.top + (rcText.bottom - rcText.top - accelSize.cy) / 2;
|
||||
y = rcText.top + (rcText.bottom - rcText.top - accelSize.cy) / 2;
|
||||
|
||||
::DrawState(hdc, NULL, NULL, wxMSW_CONV_LPARAM(accel),
|
||||
accel.length(), x, y, 0, 0, flags);
|
||||
|
||||
Reference in New Issue
Block a user