sensor: Fix overaggressive search/replace. :)
authorRyan C. Gordon <icculus@icculus.org>
Wed, 20 May 2020 17:32:23 -0400
changeset 13842a09f7d0800eb
parent 13841 b89df0d683ad
child 13843 cbd001bb0b89
sensor: Fix overaggressive search/replace. :)
src/sensor/windows/SDL_windowssensor.c
     1.1 --- a/src/sensor/windows/SDL_windowssensor.c	Wed May 20 17:22:52 2020 -0400
     1.2 +++ b/src/sensor/windows/SDL_windowssensor.c	Wed May 20 17:32:23 2020 -0400
     1.3 @@ -161,9 +161,9 @@
     1.4  #endif
     1.5                  switch (SDL_sensors[i].type) {
     1.6                  case SDL_SENSOR_ACCEL:
     1.7 -                    hrX = ISensorDataReport_GetSensorValue(pNewData, &SDL_SENSOR_DATA_TYPE_ACCELERATION_X_G, &valueX);
     1.8 -                    hrY = ISensorDataReport_GetSensorValue(pNewData, &SDL_SENSOR_DATA_TYPE_ACCELERATION_Y_G, &valueY);
     1.9 -                    hrZ = ISensorDataReport_GetSensorValue(pNewData, &SDL_SENSOR_DATA_TYPE_ACCELERATION_Z_G, &valueZ);
    1.10 +                    hrX = ISensorDataReport_GetSensorValue(pNewData, &SENSOR_DATA_TYPE_ACCELERATION_X_G, &valueX);
    1.11 +                    hrY = ISensorDataReport_GetSensorValue(pNewData, &SENSOR_DATA_TYPE_ACCELERATION_Y_G, &valueY);
    1.12 +                    hrZ = ISensorDataReport_GetSensorValue(pNewData, &SENSOR_DATA_TYPE_ACCELERATION_Z_G, &valueZ);
    1.13                      if (SUCCEEDED(hrX) && SUCCEEDED(hrY) && SUCCEEDED(hrZ) &&
    1.14                          valueX.vt == VT_R8 && valueY.vt == VT_R8 && valueZ.vt == VT_R8) {
    1.15                          float values[3];