Skip to content

Commit cb5cac5

Browse files
Fix dragging another window over the stone background of chat tab in configgui, causing stone background to be partially filled with garbage pixels
1 parent 8c65158 commit cb5cac5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ConfigGUI/ChatPreview.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public void SetText( string[] lines ) {
105105

106106

107107
protected override void OnPaint( PaintEventArgs e ) {
108-
e.Graphics.DrawImageUnscaledAndClipped( Resources.ChatBackground, e.ClipRectangle );
109-
108+
e.Graphics.DrawImage( Resources.ChatBackground, e.ClipRectangle.X, e.ClipRectangle.Y,
109+
e.ClipRectangle, GraphicsUnit.Pixel );
110110
e.Graphics.TextRenderingHint = TextRenderingHint.SingleBitPerPixel;
111111

112112
if( segments != null && segments.Length > 0 ) {

0 commit comments

Comments
 (0)