Browse Source

engine: add BUGFIX comment for Cl2BlitOutlineSafe

When hovering over a monster at the bottom part of the screen, the
outline may be off-by-one, thus overwriting the top pixel of the panel.
pull/831/head^2
Robin Eklind 6 years ago committed by Anders Jenbo
parent
commit
c2df2635db
  1. 1
      Source/engine.cpp

1
Source/engine.cpp

@ -3811,6 +3811,7 @@ void Cl2BlitOutlineSafe(BYTE *pDecodeTo, BYTE *pRLEBytes, int nDataSize, int nWi
dst[-1] = col;
dst[1] = col;
dst[-BUFFER_WIDTH] = col;
// BUGFIX: only set `if (dst+BUFFER_WIDTH < gpBufEnd)`
dst[BUFFER_WIDTH] = col;
}
dst++;

Loading…
Cancel
Save