Browse Source

Don't use C-cast

des/loadfont
Patricia Aas 11 months ago
parent
commit
8b6a0a5c86
  1. 2
      scaling-lib/Scaling.mm

2
scaling-lib/Scaling.mm

@ -9,7 +9,7 @@ It is not a C++ file and is not part of this course!
namespace pacman {
double scaling_factor_for_window(sf::WindowHandle handle) {
return [ static_cast<id>(handle backingScaleFactor)];
return [ reinterpret_cast<id>(handle) backingScaleFactor];
}
}
Loading…
Cancel
Save