Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3692 closed enhancement (duplicate)

[PATCH] Support HIDPI (Retina)

Reported by: Ilya Ryzhenkov Owned by:
Priority: Must Have Milestone:
Component: Core engine Keywords: patch
Cc: Patch:

Description

SDL2 supports SDL_WINDOW_ALLOW_HIGHDPI flag for when creating window. Use it, call SDL_GL_GetDrawableSize to get actual canvas size, introduce g_DpiScale to transform mouse positions.

TODO: Update TouchInput as necessary, e.g. on HIDPI Android or some may be 4K Android TV, who knows :)

Attachments (1)

hidpi.patch (6.3 KB ) - added by Ilya Ryzhenkov 8 years ago.

Download all attachments as: .zip

Change History (4)

by Ilya Ryzhenkov, 8 years ago

Attachment: hidpi.patch added

comment:1 by Ilya Ryzhenkov, 8 years ago

Keywords: review patch added; retina hidpi removed
Milestone: BacklogAlpha 20

comment:2 by historic_bruno, 8 years ago

Keywords: review removed
Milestone: Alpha 20
Resolution: duplicate
Status: newclosed

Please search for existing tickets before creating a new one: #2349

The patch should be attached there as it has more details.

comment:3 by gameboy, 8 years ago

I would like to know what features your patch implements, 4K resolution? It would be very nice if you can support the touch function.

Note: See TracTickets for help on using tickets.