Opened 10 years ago

Last modified 15 months ago

#2349 new enhancement

Add support for Hi-DPI displays — at Version 4

Reported by: julian37 Owned by:
Priority: Nice to Have Milestone: Work In Progress
Component: Core engine Keywords: patch, review
Cc: Ilya Ryzhenkov, hal9000 Patch:

Description (last modified by historic_bruno)

It would be nice if 0 A.D. could take advantage of Hi-DPI displays, such as Apple's Retina displays.

As far as I can tell, this requires the following:

  • Upgrading to SDL2, which adds the SDL_WINDOW_ALLOW_HIGHDPI flag
  • Ensuring the GUI remains at the original size (i.e. magnifying it by 2x with respect to 3D graphics)

And the following are nice-to-haves:

  • Doubling the resolution of the prerendered fonts for crisp text rendering
  • Providing all bitmap graphics in double the resolution (seeing that 4K displays are on the horizon, perhaps new bitmaps graphics should be prepared at 4x the resolution)

I've attached a simple-minded patch for the first issue (SDL2 support) to ticket #2041, and I've prepared a patch to address issues 2 and 3 (scaled-up GUI and high-res fonts), will attach it shortly.

Change History (5)

comment:1 by julian37, 10 years ago

Description: modified (diff)

comment:2 by historic_bruno, 10 years ago

SDL2 support has been merged into SVN. It's not yet the default for OS X, but will be for A17 and this task can be worked on.

comment:3 by historic_bruno, 9 years ago

r16223 added a GUI scaling option.

comment:4 by historic_bruno, 9 years ago

Description: modified (diff)

by historic_bruno, 8 years ago

Attachment: hidpi.patch added

patch by orangy from #3692

Note: See TracTickets for help on using tickets.