<style>table.customTableClassName {margin-bottom: 10px;border-collapse: collapse;display: table;}.customTableClassName td, .customTableClassName th {border: 1px solid #ddd;}</style><div id="write-custom-write" tabindex="0" style="font-size: 14px; font-family: 宋体; outline: none;"><p style="margin:0px;">hi winehq!</p><p style="margin:0px;">    When I was debugging an application, I noticed that you had added patch for new_surface:</p><p style="margin:0px;">    85f81948de1d7fe6d6d16f681a3a7cf8c08a566f,    6ccb94392a8ef4bca701ae2a560f4ea1da677edd</p><p style="margin:0px;"><br></p><p style="margin:0px;">They cause bugs with the following window refresh:</p><p style="margin:0px;">    1. Dragging the window edge to scale the window will cause a window top toolbar refresh error.</p><p style="margin:0px;">    2. Changing the window size also causes a window top toolbar refresh error.</p><p style="margin:0px;">    3. Open the image with the app. The first image will be incomplete.</p><p style="margin:0px;">    4. Window showing a transparent background whose background has not been drawn.<br></p><p style="margin:0px;"><br></p><p style="margin:0px;">After trying to modify the conditions of new_surface, I was able to fix most of the bugs, but not the root of the problem.</p><p style="margin:0px;"><span style="font-family: 宋体; font-size: 14px;">At the moment I can only revert these issues by removing the relevant patches.</span></p><p style="margin:0px;"><span style="font-family: 宋体; font-size: 14px;"><br></span></p><p style="margin:0px;"><span style="font-family: 宋体; font-size: 14px;">user32/winpos.c/set_window_pos</span></p><div style="color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: "Droid Sans Mono", monospace, monospace, "Droid Sans Fallback"; font-size: 14px; line-height: 19px; white-space: pre;"><div><span style="color: #c586c0;">if</span> (!<span style="color: #dcdcaa;">EqualRect</span>( window_rect, &visible_rect ) || new_surface || valid_rects)</div><div>{</div><div><span style="color: #c586c0;">    if</span> (new_surface && swp_flags & SWP_FRAMECHANGED)</div><div>    {</div><div><span style="color: #9cdcfe;">        extra_rects</span>[<span style="color: #b5cea8;">1</span>] = <span style="color: #9cdcfe;">new_surface</span>-><span style="color: #9cdcfe;">rect</span>;</div><div><span style="color: #dcdcaa;">        OffsetRect</span>( &<span style="color: #9cdcfe;">extra_rects</span>[<span style="color: #b5cea8;">1</span>], <span style="color: #9cdcfe;">visible_rect</span>.<span style="color: #9cdcfe;">left</span>, <span style="color: #9cdcfe;">visible_rect</span>.<span style="color: #9cdcfe;">top</span> );</div><div>    }</div><div><span style="color: #c586c0;">    if</span> (valid_rects) <span style="color: #9cdcfe;">extra_rects</span>[<span style="color: #b5cea8;">2</span>] = <span style="color: #9cdcfe;">valid_rects</span>[<span style="color: #b5cea8;">0</span>];</div><div><span style="color: #c586c0;">    else</span> <span style="color: #dcdcaa;">SetRectEmpty</span>( &<span style="color: #9cdcfe;">extra_rects</span>[<span style="color: #b5cea8;">2</span>] );</div><div><span style="color: #dcdcaa;">    wine_server_add_data</span>( req, extra_rects, <span style="color: #569cd6;">sizeof</span>(extra_rects) );</div><div>}</div></div><p style="margin:0px;"><br></p><p style="margin:0px;"><br></p></div><div id="write-custom-companySignature"><p style="color: rgb(0, 0, 0); font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px; background: rgb(254, 254, 254);"><strong><span style="font-size:13.5pt">统信软件技术有限公司</span></strong><span lang="EN-US"><o:p></o:p></span></p><p style="color: rgb(0, 0, 0); font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px; background: rgb(254, 254, 254);"><strong><span lang="EN-US" style="font-size:7.5pt">UnionTech
Software Technology Co., Ltd. </span></strong><span style="font-size: 10pt;"> </span></p><p style="color: rgb(0, 0, 0); font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px; background: rgb(254, 254, 254);"><span style="background-color: rgb(255, 255, 255); font-size: 10pt;">官网:</span><span lang="EN-US" style="background-color: rgb(255, 255, 255); font-size: 10pt; font-family: Tahoma, sans-serif;">www.uniontech.com</span><span style="font-size: 9pt; background-color: rgb(255, 255, 255);">  </span></p><p style="color: rgb(0, 0, 0); font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"><span style="font-size:10.0pt;
mso-ascii-font-family:Tahoma;mso-hansi-font-family:Tahoma;mso-bidi-font-family:
Tahoma;color:black">座机:</span><span lang="EN-US" style="font-size:10.0pt;
font-family:"Tahoma",sans-serif;color:black">+86-10-62669253</span></p><br><div style=""><span style="font-family:tahoma, arial, helvetica, sans-serif"><span style="font-size: 12px;">此电子邮件消息仅供预期收件人使用,其中可能包含保密或特权使用信息。如果您不是预期收件人,请勿使用、传播、分发或复制此电子邮件或信赖此邮件采取任何行动。如果您误收了此邮件,请立即回复邮件通知统信软件技术有限公司发件人,并删除误收电子邮件及其相关附件。感谢配合!</span></span></div><span style="font-family:tahoma, arial, helvetica, sans-serif"><span style="font-size: 12px;"><br></span></span><div style=""><span style="font-family:tahoma, arial, helvetica, sans-serif"><span style="font-size: 12px;">This email message is intended only for the use of the individual or entity who/which is the intended recipient and may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of, or taking any action in reliance on, this e-mail is strictly prohibited. If you have received this email in error, please notify UnionTech Software Technology  immediately by replying to this e-mail and immediately delete and discard all copies of the e-mail and the attachment thereto (if any). Thank you.</span></span></div><br></div><p style="margin:0px;"><br></p>