Don't use C-cast
This commit is contained in:
parent
eb092224f4
commit
8b6a0a5c86
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ It is not a C++ file and is not part of this course!
|
||||||
namespace pacman {
|
namespace pacman {
|
||||||
|
|
||||||
double scaling_factor_for_window(sf::WindowHandle handle) {
|
double scaling_factor_for_window(sf::WindowHandle handle) {
|
||||||
return [ static_cast<id>(handle backingScaleFactor)];
|
return [ reinterpret_cast<id>(handle) backingScaleFactor];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue