Skip to content

Commit 0d97280

Browse files
committed
Fix bug when dragging the window up from being partially off-screen, where it would redraw the top of the canvas in the newly exposed part rather than the correct part.
1 parent 2ab2012 commit 0d97280

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

DrawingCanvas.ixx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,10 @@ bool DrawingCanvas::PaintFinish(HDC displayHdc, RECT const& rect)
278278
auto oldMode = SetGraphicsMode(memoryHdc, GM_COMPATIBLE);
279279
BitBlt(
280280
displayHdc,
281-
//0,0,
282281
rect.left, rect.top,
283282
rect.right, rect.bottom,
284283
memoryHdc,
285-
0,0,
284+
rect.left, rect.top,
286285
SRCCOPY
287286
);
288287
SetGraphicsMode(memoryHdc, oldMode);

0 commit comments

Comments
 (0)