From aea59f42eff2a2ba79c4d55fb32e19cee62857e7 Mon Sep 17 00:00:00 2001 From: Daniel Giritzer Date: Fri, 2 Jun 2017 22:37:33 +0200 Subject: [PATCH] Made usage message more beautiful --- src/main.c | 4 +++- src/tvout.h | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index b630404..94010f9 100644 --- a/src/main.c +++ b/src/main.c @@ -22,10 +22,12 @@ int main(int argc, char **argv) //Print usage message if(argc != 3) { + fprintf(stdout, "++++++++++++++++++++++++++++++\n"); fprintf(stdout, "Usage: tvout \n"); fprintf(stdout, "The parameter values should be in px.\n\n"); - fprintf(stdout, "This program was created for the Armbian Project."); + fprintf(stdout, "This program was created for the Armbian Project.\n"); fprintf(stdout, "(c) 2017, Daniel G.\n"); + fprintf(stdout, "++++++++++++++++++++++++++++++\n"); return EXIT_SUCCESS; } diff --git a/src/tvout.h b/src/tvout.h index 9837fe4..ba003f4 100644 --- a/src/tvout.h +++ b/src/tvout.h @@ -12,7 +12,7 @@ #define TV_ENCODER_BASE 0x01E00000 #define TV_ENCODER_RESYNC TV_ENCODER_BASE + 0x130 -#define X_REG_OFFSET 15 -#define Y_REG_OFFSET 0 +#define Y_REG_OFFSET 15 +#define X_REG_OFFSET 0 #endif // TVOUT_H_INCLUDED -- 2.11.0