Skip to content

Commit

Permalink
Fix dragging another window over the stone background of chat tab in …
Browse files Browse the repository at this point in the history
…configgui, causing stone background to be partially filled with garbage pixels
  • Loading branch information
UnknownShadow200 committed May 29, 2017
1 parent 8c65158 commit cb5cac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ConfigGUI/ChatPreview.cs
Expand Up @@ -105,8 +105,8 @@ sealed class TextSegment {


protected override void OnPaint( PaintEventArgs e ) {
e.Graphics.DrawImageUnscaledAndClipped( Resources.ChatBackground, e.ClipRectangle );

e.Graphics.DrawImage( Resources.ChatBackground, e.ClipRectangle.X, e.ClipRectangle.Y,
e.ClipRectangle, GraphicsUnit.Pixel );
e.Graphics.TextRenderingHint = TextRenderingHint.SingleBitPerPixel;

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

0 comments on commit cb5cac5

Please sign in to comment.