ccbuluo / duilib

Automatically exported from code.google.com/p/duilib
0 stars 0 forks source link

CRenderEngine::DrawImage绘制过程存在bug #75

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
CRenderEngine::DrawImage绘制过程存在bug,
:DrawImage 中调用的SetStretchBltMode(hDC, HALFTONE) 
改变了当前内存DC的拉伸模式,但是没有在函数调用结束之后
改原来的模式。导致后面一系列绘制过程都受到影响。如:��
�用GDI+在上面绘制文字,会出现显示不正常。

修复办法:
建议使用 int pre_bltmode = ::SetStretchBltMode(hDC, HALFTONE);
并且在 DrawImage 结束的地方加上 ::SetStretchBltMode(hDC, pre_bltmode);

Original issue reported on code.google.com by yuheng0...@gmail.com on 11 Apr 2013 at 1:47