Skip to content

Commit

Permalink
changed check state
Browse files Browse the repository at this point in the history
  • Loading branch information
lostjared committed Feb 23, 2019
1 parent 95cbc4f commit c0cb373
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Binary file not shown.
7 changes: 6 additions & 1 deletion Acid.Cam.v2.OSX/AC_Controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,10 @@ -(IBAction) startProgram: (id) sender {
return;
}
}
if([up4k state] == NSOffState && [chk_stretch state] == NSOnState) {
_NSRunAlertPanel(@"Cannot Stretch", @"Please turn off Stretching as requires resize to be enabled", @"Ok", nil, nil);
return;
}

if([up4k state] == NSOnState && [videoFileInput state] == NSOffState) {
_NSRunAlertPanel(@"Error",@" Scaling only available in video mode", @"Ok", nil,nil);
Expand Down Expand Up @@ -1334,13 +1338,13 @@ - (IBAction) checkChanged: (id) sender {
[video_width setEnabled: NO];
[video_height setEnabled: NO];
[chk_stretch setEnabled:NO];

}
else {
[video_file setEnabled: NO];
[resolution setEnabled: NO];
[device_index setEnabled: NO];
[selectVideoFile setEnabled: YES];
[chk_repeat setEnabled:YES];
[up4k setEnabled: YES];
if([up4k state] == NSOnState) {
[video_width setEnabled: YES];
Expand Down Expand Up @@ -2715,6 +2719,7 @@ - (IBAction) scaleToggle: (id) sender {
[video_width setEnabled:NO];
[video_height setEnabled:NO];
[chk_stretch setEnabled:NO];
[chk_stretch setState: NSOffState];
} else {
[video_width setEnabled:YES];
[video_height setEnabled:YES];
Expand Down
2 changes: 1 addition & 1 deletion Acid.Cam.v2.OSX/Acid.Cam.v2.OSX-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.18.0 High Sierra</string>
<string>2.18.1 High Sierra</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
8 changes: 4 additions & 4 deletions Acid.Cam.v2.OSX/ac-filter1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
// Acid Cam namespace
namespace ac {
#if defined(__APPLE__)
const std::string version="2.18.0 (macOS)";
const std::string version="2.18.1 (macOS)";
#elif defined(__linux__)
const std::string version="2.18.0 (Linux)";
const std::string version="2.18.1 (Linux)";
#elif defined(_WIN32)
const std::string version="2.18.0 (Windows)";
const std::string version="2.18.1 (Windows)";
#else
const std::string version="2.18.0 (Generic)";
const std::string version="2.18.1 (Generic)";
#endif
// variables
int swapColor_r = 0, swapColor_g = 0, swapColor_b = 0;
Expand Down

0 comments on commit c0cb373

Please sign in to comment.