From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Fri, 10 Nov 2023 11:02:38 +0000 (+0530)
Subject: move all screen dimensions and coordinates into a header
X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/about/reliability?a=commitdiff_plain;h=5f826a0fb03dedbe28bb74b59ca03d92e63e4c0f;p=pihpsdr.git

move all screen dimensions and coordinates into a header
---

diff --git a/radio.c b/radio.c
index 0faeb64..2ddbfce 100644
--- a/radio.c
+++ b/radio.c
@@ -64,6 +64,8 @@
 #include "vox.h"
 #include "waterfall.h"
 #include "zoompan.h"
+#include "screen.h"
+
 #ifdef LOCALCW
 #include "iambic.h"
 #endif
@@ -96,19 +98,6 @@
 //   toolbar height (optional)   30
 //   zoom/pan height (optional)  50
 
-#define MENU_HEIGHT (50)
-#define MENU_WIDTH (50)
-// so menu height x 2 == meter height (but we still have 20 pixels
-// empty.
-#define VFO_HEIGHT (100) // edit default = 60
-#define VFO_WIDTH (display_width - METER_WIDTH - MENU_WIDTH)
-#define METER_HEIGHT (100) // edit default = 60
-#define METER_WIDTH (240)
-#define PANADAPTER_HEIGHT (105)
-#define ZOOMPAN_HEIGHT (50)
-#define SLIDERS_HEIGHT (100)
-#define TOOLBAR_HEIGHT (30)
-#define WATERFALL_HEIGHT (105)
 
 #ifdef MIDI
 gboolean midi_enabled;