Change font size and use outlines
This commit is contained in:
@@ -136,13 +136,28 @@
|
||||
#define WINDOW_HEIGHT 1080
|
||||
#define WINDOW_TITLE "RAF / Marine Radar Exhibit"
|
||||
|
||||
// Left text panel occupies left side; scope and status bar share the right side
|
||||
/* Left side is split vertically: text panel on top, status bar on bottom.
|
||||
* Right side is the scope viewport — it takes the full window height. */
|
||||
#define LEFT_PANEL_WIDTH 500
|
||||
#define STATUS_BAR_HEIGHT 250
|
||||
|
||||
// Derived dimensions — scope area fills remaining right-side space
|
||||
#define SCOPE_WIDTH (WINDOW_WIDTH - LEFT_PANEL_WIDTH)
|
||||
#define SCOPE_HEIGHT (WINDOW_HEIGHT - STATUS_BAR_HEIGHT)
|
||||
// Derived dimensions
|
||||
#define SCOPE_WIDTH (WINDOW_WIDTH - LEFT_PANEL_WIDTH)
|
||||
#define SCOPE_HEIGHT WINDOW_HEIGHT // scope takes full right-side height
|
||||
#define LEFT_TEXT_HEIGHT (WINDOW_HEIGHT - STATUS_BAR_HEIGHT) // text portion of left panel
|
||||
|
||||
// Pixel margin on every side of the scope area (keeps edges visible on the monitor)
|
||||
#define SCOPE_MARGIN 10
|
||||
// Available scope area after removing the margin
|
||||
#define SCOPE_VW (SCOPE_WIDTH - 2 * SCOPE_MARGIN)
|
||||
#define SCOPE_VH (SCOPE_HEIGHT - 2 * SCOPE_MARGIN)
|
||||
// Square scope: side length is the smaller of SCOPE_VW and SCOPE_VH (height wins here)
|
||||
#define SCOPE_SQUARE SCOPE_VH
|
||||
// Horizontal offset to centre the square inside the SCOPE_VW-wide available area
|
||||
#define SCOPE_SQUARE_XOFF ((SCOPE_VW - SCOPE_SQUARE) / 2)
|
||||
|
||||
// 1 = draw a white debug border box around each screen panel (temporary layout aid)
|
||||
#define DEBUG_DRAW_WINDOW_BORDERS 1
|
||||
|
||||
/* ============================================================
|
||||
* TEXT RENDERING
|
||||
|
||||
Reference in New Issue
Block a user