@ -22,7 +22,7 @@ namespace Perspex.Win32
{
private static List < WindowImpl > s_instances = new List < WindowImpl > ( ) ;
private static readonly IntPtr s_d efaultCursor = UnmanagedMethods . LoadCursor (
private static readonly IntPtr D efaultCursor = UnmanagedMethods . LoadCursor (
IntPtr . Zero , new IntPtr ( ( int ) UnmanagedMethods . Cursor . IDC_ARROW ) ) ;
private UnmanagedMethods . WndProc _ wndProcDelegate ;
@ -187,7 +187,7 @@ namespace Perspex.Win32
public void SetCursor ( IPlatformHandle cursor )
{
UnmanagedMethods . SetClassLong ( _ hwnd , UnmanagedMethods . ClassLongIndex . GCL_HCURSOR ,
cursor ? . Handle ? ? s_d efaultCursor) ;
cursor ? . Handle ? ? D efaultCursor) ;
}
protected virtual IntPtr CreateWindowOverride ( ushort atom )
@ -212,7 +212,7 @@ namespace Perspex.Win32
{
bool unicode = UnmanagedMethods . IsWindowUnicode ( hWnd ) ;
const double W heelDelta = 1 2 0.0 ;
const double w heelDelta = 1 2 0.0 ;
uint timestamp = unchecked ( ( uint ) UnmanagedMethods . GetMessageTime ( ) ) ;
RawInputEventArgs e = null ;
@ -327,7 +327,7 @@ namespace Perspex.Win32
timestamp ,
_ owner ,
ScreenToClient ( ( uint ) lParam & 0xffff , ( uint ) lParam > > 1 6 ) ,
new Vector ( 0 , ( ( int ) wParam > > 1 6 ) / W heelDelta) , WindowsKeyboardDevice . Instance . Modifiers ) ;
new Vector ( 0 , ( ( int ) wParam > > 1 6 ) / w heelDelta) , WindowsKeyboardDevice . Instance . Modifiers ) ;
break ;
case UnmanagedMethods . WindowsMessage . WM_MOUSELEAVE :
@ -388,7 +388,7 @@ namespace Perspex.Win32
style = 0 ,
lpfnWndProc = _ wndProcDelegate ,
hInstance = Marshal . GetHINSTANCE ( GetType ( ) . Module ) ,
hCursor = s_d efaultCursor,
hCursor = D efaultCursor,
hbrBackground = ( IntPtr ) 5 ,
lpszClassName = _ className ,
} ;