Skip to content

Commit

Permalink
Merge pull request #10 from seclerp/resolutions-16-9
Browse files Browse the repository at this point in the history
Add missing 16:9 resolutions up to 1920x1080
  • Loading branch information
Stengo authored Oct 11, 2023
2 parents 249b8a6 + 29f5b35 commit 47c1d00
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DeskPad.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 11.5;
MACOSX_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -368,7 +368,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 11.5;
MACOSX_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
Expand Down
1 change: 1 addition & 0 deletions DeskPad/CGVirtualDisplayPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface CGVirtualDisplaySettings : NSObject

@property(retain, nonatomic) NSArray<CGVirtualDisplayMode *> *modes;
@property(nonatomic) unsigned int hiDPI;

- (instancetype)init;

Expand Down
7 changes: 7 additions & 0 deletions DeskPad/Frontend/Screen/ScreenViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ class ScreenViewController: SubscriberViewController<ScreenViewData> {
self.display = display

let settings = CGVirtualDisplaySettings()
settings.hiDPI = 1
settings.modes = [
// 16:9
CGVirtualDisplayMode(width: 1920, height: 1080, refreshRate: 60),
CGVirtualDisplayMode(width: 1600, height: 900, refreshRate: 60),
CGVirtualDisplayMode(width: 1366, height: 768, refreshRate: 60),
CGVirtualDisplayMode(width: 1280, height: 720, refreshRate: 60),
// 16:10
CGVirtualDisplayMode(width: 1920, height: 1200, refreshRate: 60),
CGVirtualDisplayMode(width: 1680, height: 1050, refreshRate: 60),
CGVirtualDisplayMode(width: 1440, height: 900, refreshRate: 60),
Expand Down

0 comments on commit 47c1d00

Please sign in to comment.