src/video/winrt/SDL_winrtpointerinput.cpp
changeset 8747 b4a56c2ca0f0
parent 8615 097646deaef2
child 8756 d35c6e6ccbb4
equal deleted inserted replaced
8746:0b4938c34e75 8747:b4a56c2ca0f0
    81     Windows::Foundation::Point outputPosition;
    81     Windows::Foundation::Point outputPosition;
    82 
    82 
    83     // Compute coordinates normalized from 0..1.
    83     // Compute coordinates normalized from 0..1.
    84     // If the coordinates need to be sized to the SDL window,
    84     // If the coordinates need to be sized to the SDL window,
    85     // we'll do that after.
    85     // we'll do that after.
    86 #if WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
    86 #if (WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP) || (NTDDI_VERSION >= NTDDI_WINBLUE)
    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 (DisplayProperties::CurrentOrientation)
    91     {
    91     {