Skip to content

Commit cd7549d

Browse files
committed
Revert go compatible graphics mode after WindowTransformImage
1 parent c36296e commit cd7549d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

miniwindow.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4309,6 +4309,8 @@ long CMiniWindow::TransformImage(LPCTSTR ImageId, float Left, float Top, short M
43094309

43104310
default:
43114311
bmDC.SelectObject(pOldbmp);
4312+
ModifyWorldTransform(dc.m_hDC, &xform, MWT_IDENTITY);
4313+
SetGraphicsMode (dc.m_hDC, GM_COMPATIBLE);
43124314
return eBadParameter;
43134315

43144316
} // end of switch
@@ -4317,6 +4319,7 @@ long CMiniWindow::TransformImage(LPCTSTR ImageId, float Left, float Top, short M
43174319

43184320
// reset to identity transformation
43194321
ModifyWorldTransform(dc.m_hDC, &xform, MWT_IDENTITY);
4322+
SetGraphicsMode (dc.m_hDC, GM_COMPATIBLE);
43204323

43214324
return eOK;
43224325
} // end of CMiniWindow::TransformImage

0 commit comments

Comments
 (0)