Change font size and use outlines
This commit is contained in:
@@ -127,8 +127,8 @@ static void control_line(const std::string& label,
|
||||
/* ------------------------------------------------------------------ */
|
||||
|
||||
static void render_scope_name(const std::string& radar_name) {
|
||||
const float scope_w = static_cast<float>(SCOPE_WIDTH);
|
||||
const float scope_h = static_cast<float>(SCOPE_HEIGHT);
|
||||
const float scope_w = static_cast<float>(SCOPE_SQUARE);
|
||||
const float scope_h = static_cast<float>(SCOPE_SQUARE);
|
||||
|
||||
float name_w = g_text_renderer_large.get_text_width(radar_name, 1.0f);
|
||||
float nx = (scope_w - name_w) / 2.0f;
|
||||
@@ -164,7 +164,7 @@ static void render_common_status(float x, float& y, float scale) {
|
||||
/* ================================================================== */
|
||||
|
||||
void ChainHomeRadar::render_left_panel() {
|
||||
float y = static_cast<float>(WINDOW_HEIGHT) - MARGIN - LH_LARGE;
|
||||
float y = static_cast<float>(LEFT_TEXT_HEIGHT) - MARGIN - LH_LARGE;
|
||||
float x = MARGIN;
|
||||
|
||||
text_line_large("CHAIN HOME RADAR", x, y,
|
||||
@@ -238,7 +238,7 @@ void ChainHomeRadar::render_status_bar() {
|
||||
/* ================================================================== */
|
||||
|
||||
void MarineAScopeRadar::render_left_panel() {
|
||||
float y = static_cast<float>(WINDOW_HEIGHT) - MARGIN - LH_LARGE;
|
||||
float y = static_cast<float>(LEFT_TEXT_HEIGHT) - MARGIN - LH_LARGE;
|
||||
float x = MARGIN;
|
||||
|
||||
text_line_large("MARINE A-SCOPE RADAR", x, y,
|
||||
@@ -310,7 +310,7 @@ void MarineAScopeRadar::render_status_bar() {
|
||||
/* ================================================================== */
|
||||
|
||||
void MarineTrafficRadar::render_left_panel() {
|
||||
float y = static_cast<float>(WINDOW_HEIGHT) - MARGIN - LH_LARGE;
|
||||
float y = static_cast<float>(LEFT_TEXT_HEIGHT) - MARGIN - LH_LARGE;
|
||||
float x = MARGIN;
|
||||
|
||||
text_line_large("MARINE TRAFFIC CONTROL RADAR", x, y,
|
||||
@@ -386,7 +386,7 @@ void MarineTrafficRadar::render_status_bar() {
|
||||
/* ================================================================== */
|
||||
|
||||
void PoliceboatRadar::render_left_panel() {
|
||||
float y = static_cast<float>(WINDOW_HEIGHT) - MARGIN - LH_LARGE;
|
||||
float y = static_cast<float>(LEFT_TEXT_HEIGHT) - MARGIN - LH_LARGE;
|
||||
float x = MARGIN;
|
||||
|
||||
text_line_large("POLICE BOAT RADAR", x, y,
|
||||
|
||||
Reference in New Issue
Block a user