Browse Source
Merge pull request #8728 from jp2masa/gl-control-render-rect
Fixed OpenGlControlBase render rect
pull/8731/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.OpenGL/Controls/OpenGlControlBase.cs
|
|
|
@ -34,7 +34,7 @@ namespace Avalonia.OpenGL.Controls |
|
|
|
_attachment.Present(); |
|
|
|
} |
|
|
|
|
|
|
|
context.DrawImage(_bitmap, new Rect(_bitmap.Size), Bounds); |
|
|
|
context.DrawImage(_bitmap, new Rect(_bitmap.Size), new Rect(Bounds.Size)); |
|
|
|
base.Render(context); |
|
|
|
} |
|
|
|
|
|
|
|
|