From: Steinar H. Gunderson Date: Mon, 16 Nov 2015 17:53:15 +0000 (+0100) Subject: Move WIDTH/HEIGHT #defines into defs.h. X-Git-Tag: 1.0.0~114 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=6800acad34e7b16d07da9d2dc7f2ecb93ee24b23 Move WIDTH/HEIGHT #defines into defs.h. --- diff --git a/defs.h b/defs.h index 580ced7..2b57898 100644 --- a/defs.h +++ b/defs.h @@ -4,6 +4,8 @@ // OUTPUT_FREQUENCY/FPS must be an integer for now. #define OUTPUT_FREQUENCY 48000 #define FPS 60 +#define WIDTH 1280 +#define HEIGHT 720 #define AUDIO_OUTPUT_CODEC AV_CODEC_ID_PCM_S32LE #define AUDIO_OUTPUT_SAMPLE_FMT AV_SAMPLE_FMT_S32 diff --git a/mixer.cpp b/mixer.cpp index 72ae215..42a0252 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -1,5 +1,3 @@ -#define WIDTH 1280 -#define HEIGHT 720 #define EXTRAHEIGHT 30 #undef Success diff --git a/theme.cpp b/theme.cpp index f7ec8e8..61e2aed 100644 --- a/theme.cpp +++ b/theme.cpp @@ -22,15 +22,13 @@ #include #include +#include "defs.h" #include "image_input.h" namespace movit { class ResourcePool; } // namespace movit -#define WIDTH 1280 // FIXME -#define HEIGHT 720 // FIXME - using namespace std; using namespace movit;