Skip to content

Commit

Permalink
Feat/RT/Weather: Switch to 'v4' endpoint, fix cross-build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TwinFan committed Jul 14, 2024
1 parent 84c1b37 commit 59958c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Include/LTRealTraffic.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#define REALTRAFFIC_NAME "RealTraffic"

// TODO: Return to v3 endpoint
#define RT_ENDP "dev"
#define RT_ENDP "v4"
#define RT_METAR_UNKN "UNKN"

#define RT_AUTH_URL "https://rtw.flyrealtraffic.com/" RT_ENDP "/auth"
Expand Down
2 changes: 2 additions & 0 deletions Include/LiveTraffic.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
#include <atomic>
#include <chrono>
#include <regex>
#include <sstream>
#include <iomanip>

// X-Plane SDK
#include "XPLMDisplay.h"
Expand Down
4 changes: 2 additions & 2 deletions Lib/ImGui/imgui_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8402,7 +8402,7 @@ void ImGui::TableUpdateLayout(ImGuiTable* table)
const float padding_auto_x = table->CellPaddingX2;
const float min_column_width = TableGetMinColumnWidth();

int count_fixed = 0;
// int count_fixed = 0; -- set but never used
float sum_weights_stretched = 0.0f; // Sum of all weights for weighted columns.
float sum_width_fixed_requests = 0.0f; // Sum of all width for fixed and auto-resize columns, excluding width contributed by Stretch columns.
table->LeftMostStretchedColumnDisplayOrder = -1;
Expand Down Expand Up @@ -8448,7 +8448,7 @@ void ImGui::TableUpdateLayout(ImGuiTable* table)
if (column->Flags & (ImGuiTableColumnFlags_WidthAlwaysAutoResize | ImGuiTableColumnFlags_WidthFixed))
{
// Latch initial size for fixed columns
count_fixed += 1;
// count_fixed += 1; -- set but never used
const bool auto_fit = (column->AutoFitQueue != 0x00) || (column->Flags & ImGuiTableColumnFlags_WidthAlwaysAutoResize);
if (auto_fit)
{
Expand Down

0 comments on commit 59958c4

Please sign in to comment.