Remove pointer
This commit is contained in:
parent
3966987e2a
commit
8082c69aff
1 changed files with 2 additions and 6 deletions
|
@ -4,16 +4,12 @@ resolution scale on Apple platforms.
|
|||
It is not a C++ file and is not part of this course!
|
||||
*/
|
||||
#import "AppKit/NSWindow.h"
|
||||
#include <cassert>
|
||||
#include "Scaling.hpp"
|
||||
|
||||
namespace pacman {
|
||||
|
||||
double scaling_factor_for_window(sf::WindowHandle) {
|
||||
NSWindow* window = static_cast<NSWindow*>(ptr);
|
||||
assert(window);
|
||||
double d = [window backingScaleFactor];
|
||||
return d;
|
||||
double scaling_factor_for_window(sf::WindowHandle handle) {
|
||||
return [ (id) handle backingScaleFactor];
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue