Platform-specific hacks for high-DPI

from blog lottia notes, | ↗ original
↗ original
This was written up while working on Ava BASIC’s IDE, the Amateur Development Client (ADC). macOS 🔗 ↩ We set .allow_high_dpi = true when creating the window with SDL, which does the right thing on macOS. We classify this situation as “native hidpi”; we recognise it by noting the created renderer has an output size 2x that of the window in both...