Browse Source

Revert "Add explicit cast for LogicalToOutput" (#2334)

This reverts commit d3c36166df.
pull/2336/head
qndel 5 years ago committed by GitHub
parent
commit
cbfffcbfd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Source/utils/display.h

4
Source/utils/display.h

@ -89,8 +89,8 @@ void LogicalToOutput(T *x, T *y)
float scaleX;
SDL_RenderGetScale(renderer, &scaleX, NULL);
*x = static_cast<T>(*x * scaleX);
*y = static_cast<T>(*x * scaleX);
*x *= scaleX;
*y *= scaleX;
#else
if (!OutputRequiresScaling())
return;

Loading…
Cancel
Save