Skip to content

Commit

Permalink
fix: 修复设置视口后当前位置没有移动到视口区域左上角的问题 (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
yixy-only authored Jun 30, 2024
1 parent 045e876 commit 54e3f43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/egegapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,7 @@ void setviewport(int left, int top, int right, int bottom, int clip, PIMAGE pimg

// OffsetViewportOrgEx(img->m_hDC, img->m_vpt.left, img->m_vpt.top, NULL);
SetViewportOrgEx(img->m_hDC, img->m_vpt.left, img->m_vpt.top, NULL);
MoveToEx(img->m_hDC, 0, 0, NULL);

CONVERT_IMAGE_END;
}
Expand Down

0 comments on commit 54e3f43

Please sign in to comment.