mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-15 00:51:24 +00:00
- added HiDPI support to Cocoa backend with Vulkan renderer
This commit is contained in:
parent
0909a67676
commit
34cbb7c276
1 changed files with 4 additions and 0 deletions
|
@ -557,6 +557,10 @@ void SystemBaseFrameBuffer::SetWindowedMode()
|
|||
|
||||
void SystemBaseFrameBuffer::SetMode(const bool fullscreen, const bool hiDPI)
|
||||
{
|
||||
assert(m_window.screen != nil);
|
||||
assert(m_window.contentView.layer != nil);
|
||||
m_window.contentView.layer.contentsScale = hiDPI ? m_window.screen.backingScaleFactor : 1.0;
|
||||
|
||||
if (fullscreen)
|
||||
{
|
||||
SetFullscreenMode();
|
||||
|
|
Loading…
Reference in a new issue