SFML community forums

Help => Graphics => Topic started by: alpha_kotenok on May 25, 2024, 10:45:18 pm

Title: High DPI on MacBook retina display
Post by: alpha_kotenok on May 25, 2024, 10:45:18 pm
When making a window, it seems to be scaled twice (with all the pixels) to match non-retina screens (I suppose). However, I am rendering a lot of relatively small text, which looks blurry. I want to use a native MacBook resolution instead. How can I accomplish that?

NSHighResolutionCapable is on. I also tried something like:
 window->setView(sf::View(sf::FloatRect({0, 0}, {(float)windowSize.x * 2, (float)windowSize.y * 2})));
but virtual pixels still remain 2x2.