Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: High DPI on MacBook retina display  (Read 117 times)

0 Members and 1 Guest are viewing this topic.

alpha_kotenok

  • Newbie
  • *
  • Posts: 1
    • View Profile
High DPI on MacBook retina display
« 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.

 

anything