Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehilborn committed Nov 17, 2018
1 parent 925b487 commit abbc22f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Binary file modified displayplacer
Binary file not shown.
16 changes: 16 additions & 0 deletions displayplacer.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ int main(int argc, char * argv[]) {
return 0;
}

if(strcmp(argv[1], "--version") == 0) {
printVersion();
return 0;
}

if (strcmp(argv[1], "list") == 0) {
listScreens();
return 0;
Expand Down Expand Up @@ -133,6 +138,17 @@ void printHelp() {
);
}

void printVersion() {
printf(
"displayplacer v1.0.0\n"
"\n"
"Developer: Jake Hilborn\n"
"GitHub: https://github.com/jakehilborn/displayplacer\n"
"LinkedIn: https://www.linkedin.com/in/jakehilborn\n"
"Email: jakehilborn@gmail\n"
);
}

void listScreens() {
CGDisplayCount screenCount;
CGGetActiveDisplayList(INT_MAX, NULL, &screenCount); //get number of active screens and store in screenCount
Expand Down
1 change: 1 addition & 0 deletions header.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void SetDisplayModeNum(CGDirectDisplayID screenId, int modeNum)
}

void printHelp();
void printVersion();
void listScreens();
bool rotateScreen(CGDirectDisplayID, int degree);
bool setResolution(CGDirectDisplayID screenId, int width, int height, bool scaled, int hz, int modeNum);
Expand Down

0 comments on commit abbc22f

Please sign in to comment.