Skip to content

Commit 33752bb

Browse files
committed
Typo fixes and simplifications as suggested by Serge.
1 parent dfaaf57 commit 33752bb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

win32ss/gdi/ntgdi/dibobj.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ NtGdiSetDIBitsToDeviceInternal(
521521
DPRINT("StartScan %d ScanLines %d Bits %p bmi %p ColorUse %d\n"
522522
" Height %d Width %d SizeImage %d\n"
523523
" biHeight %d biWidth %d biBitCount %d\n"
524-
" XSrc %d YSrc %d xDext %d yDest %d\n",
524+
" XSrc %d YSrc %d XDest %d YDest %d\n",
525525
StartScan, ScanLines, Bits, bmi, ColorUse,
526526
Height, Width, bmi->bmiHeader.biSizeImage,
527527
bmi->bmiHeader.biHeight, bmi->bmiHeader.biWidth,
@@ -585,10 +585,6 @@ NtGdiSetDIBitsToDeviceInternal(
585585

586586
SourceSize.cx = bmi->bmiHeader.biWidth;
587587
SourceSize.cy = ScanLines;
588-
if (YDest >= 0 && YSrc > 0)
589-
{
590-
ScanLines += YSrc;
591-
}
592588

593589
//DIBWidth = WIDTH_BYTES_ALIGN32(SourceSize.cx, bmi->bmiHeader.biBitCount);
594590

0 commit comments

Comments
 (0)