mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
- Fixed a small and stupid bug. We were incrementing DestBits by sizeof(ULONG) instead of sizeof(BYTE).
svn path=/trunk/; revision=9015
This commit is contained in:
parent
5a528bd57a
commit
578af8b934
1 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dib4bpp.c,v 1.29 2004/04/07 15:37:50 weiden Exp $ */
|
||||
/* $Id: dib4bpp.c,v 1.30 2004/04/07 20:04:22 navaraf Exp $ */
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -321,8 +321,8 @@ DIB_4BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
sx = SourcePoint->x;
|
||||
i = DestRect->left;
|
||||
|
||||
if(UsesPattern)
|
||||
PatternY = j % PatternHeight;
|
||||
if (UsesPattern)
|
||||
PatternY = j % PatternHeight;
|
||||
|
||||
if (i & 0x1)
|
||||
{
|
||||
|
@ -342,7 +342,7 @@ DIB_4BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
|
||||
i++;
|
||||
sx++;
|
||||
DestBits++;
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + 1);
|
||||
}
|
||||
|
||||
for (; i < RoundedRight; i += 8, sx += 8, DestBits++)
|
||||
|
|
Loading…
Reference in a new issue