Mac HighDPI
Posted: Mon Nov 20, 2017 9:35 pm
Hi,
Trying to figure out multiple resolutions and have it working fine on my local windows machine however on my friend'sretina macbook pro, love.window.getFullscreenModes() does not return his native resolution but an increase width / height;
I use the following code in my love.load function
Which returns on his Mac a window with the width & height of;
And his resolution:
What am i doing wrong?
Trying to figure out multiple resolutions and have it working fine on my local windows machine however on my friend'sretina macbook pro, love.window.getFullscreenModes() does not return his native resolution but an increase width / height;
I use the following code in my love.load function
Code: Select all
high_dpi = love.window.getPixelScale();
screen_modes = love.window.getFullscreenModes();
window_width = love.graphics.getWidth();
window_height = love.graphics.getHeight();
love.window.setMode(screen_modes[1].width, screen_modes[1].height, {fullscreen = true, fullscreentype = "exclusive", borderless=true, x=0, y=0, highdpi = true});
And his resolution:
What am i doing wrong?