Skip to content

Commit e806c24

Browse files
committed
[NTGDI] Fix SAI Paint Tool Initial Graphics Display
CORE-15002
1 parent a5ab400 commit e806c24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

win32ss/gdi/ntgdi/dibobj.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,10 @@ NtGdiSetDIBitsToDeviceInternal(
532532
{
533533
ScanLines = min(abs(Height), ScanLines);
534534
if (YSrc > 0)
535+
{
535536
ScanLines += YSrc;
537+
YSrc = 0;
538+
}
536539
}
537540
else
538541
{
@@ -582,7 +585,7 @@ NtGdiSetDIBitsToDeviceInternal(
582585

583586
SourceSize.cx = bmi->bmiHeader.biWidth;
584587
SourceSize.cy = ScanLines;
585-
if (YDest >= 0 && YSrc > 0)
588+
if (YDest >= 0 && YSrc >= 0)
586589
{
587590
ScanLines += YSrc;
588591
}

0 commit comments

Comments
 (0)