Browse Source

Revert WM_PAINT handling change

pull/2092/head
Nikita Tsukanov 8 years ago
parent
commit
e8926b7ea8
  1. 4
      src/Windows/Avalonia.Win32/WindowImpl.cs

4
src/Windows/Avalonia.Win32/WindowImpl.cs

@ -633,9 +633,7 @@ namespace Avalonia.Win32
case UnmanagedMethods.WindowsMessage.WM_PAINT: case UnmanagedMethods.WindowsMessage.WM_PAINT:
UnmanagedMethods.PAINTSTRUCT ps; UnmanagedMethods.PAINTSTRUCT ps;
if (Win32Platform.UseDeferredRendering) if (UnmanagedMethods.BeginPaint(_hwnd, out ps) != IntPtr.Zero)
Paint.Invoke(new Rect(ClientSize));
else if (UnmanagedMethods.BeginPaint(_hwnd, out ps) != IntPtr.Zero)
{ {
var f = Scaling; var f = Scaling;
var r = ps.rcPaint; var r = ps.rcPaint;

Loading…
Cancel
Save