Use division assignment operator to simplify the statement

This commit is contained in:
Artur Wieczorek
2019-12-28 23:34:17 +01:00
parent c6e188610d
commit 38cec22d4c

View File

@@ -1060,7 +1060,7 @@ bool wxBMPHandler::LoadDib(wxImage *image, wxInputStream& stream,
width = wxINT32_SWAP_ON_BE((int)dbuf[0]);
height = wxINT32_SWAP_ON_BE((int)dbuf[1]);
}
if ( !IsBmp)height = height / 2; // for icons divide by 2
if ( !IsBmp) height /= 2; // for icons divide by 2
if ( width > 32767 )
{