mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 22:23:52 +00:00
Fix iOS build
This commit is contained in:
@@ -504,7 +504,7 @@ static NSMutableSet* hostList;
|
|||||||
|
|
||||||
_streamConfig.height = [streamSettings.height intValue];
|
_streamConfig.height = [streamSettings.height intValue];
|
||||||
_streamConfig.width = [streamSettings.width intValue];
|
_streamConfig.width = [streamSettings.width intValue];
|
||||||
#ifdef TARGET_OS_TV
|
#if TARGET_OS_TV
|
||||||
// Don't allow streaming 4K on the Apple TV HD
|
// Don't allow streaming 4K on the Apple TV HD
|
||||||
struct utsname systemInfo;
|
struct utsname systemInfo;
|
||||||
uname(&systemInfo);
|
uname(&systemInfo);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TARGET_OS_TV
|
#if TARGET_OS_TV
|
||||||
- (void)controllerPauseButtonPressed:(id)sender { }
|
- (void)controllerPauseButtonPressed:(id)sender { }
|
||||||
- (void)controllerPauseButtonDoublePressed:(id)sender {
|
- (void)controllerPauseButtonDoublePressed:(id)sender {
|
||||||
Log(LOG_I, @"Menu double-pressed -- backing out of stream");
|
Log(LOG_I, @"Menu double-pressed -- backing out of stream");
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
- (void)updateOverlayText:(NSString*)text {
|
- (void)updateOverlayText:(NSString*)text {
|
||||||
if (_overlayView == nil) {
|
if (_overlayView == nil) {
|
||||||
_overlayView = [[UITextView alloc] init];
|
_overlayView = [[UITextView alloc] init];
|
||||||
#ifndef TARGET_OS_TV
|
#if !TARGET_OS_TV
|
||||||
[_overlayView setEditable:NO];
|
[_overlayView setEditable:NO];
|
||||||
#endif
|
#endif
|
||||||
[_overlayView setUserInteractionEnabled:NO];
|
[_overlayView setUserInteractionEnabled:NO];
|
||||||
|
|||||||
Reference in New Issue
Block a user