sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.7k stars 639 forks source link

Add missing DirectComposition method to create Target from `Device` #805

Closed prasannavl closed 8 years ago

prasannavl commented 8 years ago

This method is the only way to create a Target in Windows 8, which doesn't have DesktopDevice. And this method is unfortunately missing.

andrewst commented 8 years ago

Target.cs(31,18): error CS7036: There is no argument given that corresponds to the required formal parameter 'target' of 'Device.CreateTargetForHwnd(IntPtr, RawBool, out Target)' must be

      public static Target FromHwnd(Device device, IntPtr hwnd, bool topmost)
      {
         Target target;
         device.CreateTargetForHwnd(hwnd, topmost, out target);
         return target;
      }
prasannavl commented 8 years ago

@andrewst, thanks. I have to apologize for that. It was one awful sleepy and hasty commit. Its fixed now.

xoofx commented 8 years ago

Thanks