src/video/winrt/SDL_winrtpointerinput.cpp
changeset 8757 aeeeb47a5a77
parent 8756 d35c6e6ccbb4
child 9220 1cb6ac648db7
equal deleted inserted replaced
8756:d35c6e6ccbb4 8757:aeeeb47a5a77
    85     // we'll do that after.
    85     // we'll do that after.
    86 #if (WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP) || (NTDDI_VERSION > NTDDI_WIN8)
    86 #if (WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP) || (NTDDI_VERSION > NTDDI_WIN8)
    87     outputPosition.X = rawPosition.X / nativeWindow->Bounds.Width;
    87     outputPosition.X = rawPosition.X / nativeWindow->Bounds.Width;
    88     outputPosition.Y = rawPosition.Y / nativeWindow->Bounds.Height;
    88     outputPosition.Y = rawPosition.Y / nativeWindow->Bounds.Height;
    89 #else
    89 #else
    90     switch (DisplayProperties::CurrentOrientation)
    90     switch (WINRT_DISPLAY_PROPERTY(CurrentOrientation))
    91     {
    91     {
    92         case DisplayOrientations::Portrait:
    92         case DisplayOrientations::Portrait:
    93             outputPosition.X = rawPosition.X / nativeWindow->Bounds.Width;
    93             outputPosition.X = rawPosition.X / nativeWindow->Bounds.Width;
    94             outputPosition.Y = rawPosition.Y / nativeWindow->Bounds.Height;
    94             outputPosition.Y = rawPosition.Y / nativeWindow->Bounds.Height;
    95             break;
    95             break;