Declare rect in RawBitmap outside of conditional scope

This commit is contained in:
Nathan Fulton 2016-03-14 17:51:20 -04:00
parent c9372c661c
commit eb1085142d

View File

@ -142,8 +142,8 @@ void RawBitmap::BltTo(DibBitmap *pbmDst, int xDst, int yDst, Rect *prcSrc)
{
// Src rect to blt from
Rect rcSrcT;
if (prcSrc == NULL) {
Rect rcSrcT;
rcSrcT.Set(0, 0, m_cx, m_cy);
prcSrc = &rcSrcT;
}