Skip to content

Commit 5575a09

Browse files
author
Evgeni Raikhel
committed
Cosmetic rename
1 parent 74ff499 commit 5575a09

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

common/stream-model.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,13 +600,13 @@ namespace rs2
600600

601601
#ifdef BUILD_VIEWPORT_GRID_OVERLAY
602602
label = rsutils::string::from() << textual_icons::grid << "##Grid " << profile.unique_id();
603-
if (show_grid)
603+
if (show_overlay_grid)
604604
{
605605
ImGui::PushStyleColor(ImGuiCol_Text, light_blue);
606606
ImGui::PushStyleColor(ImGuiCol_TextSelectedBg, light_blue);
607607
if (ImGui::Button(label.c_str(), { 24, top_bar_height }))
608608
{
609-
show_grid = false;
609+
show_overlay_grid = false;
610610
}
611611
if (ImGui::IsItemHovered())
612612
RsImGui::CustomTooltip("Hide grid overlay");
@@ -616,7 +616,7 @@ namespace rs2
616616
{
617617
if (ImGui::Button(label.c_str(), { 24, top_bar_height }))
618618
{
619-
show_grid = true;
619+
show_overlay_grid = true;
620620
}
621621
if (ImGui::IsItemHovered())
622622
RsImGui::CustomTooltip("Show grid overlay");
@@ -2115,7 +2115,7 @@ namespace rs2
21152115
update_ae_roi_rect(stream_rect, g, error_message);
21162116

21172117
#ifdef BUILD_VIEWPORT_GRID_OVERLAY
2118-
if (show_grid)
2118+
if (show_overlay_grid)
21192119
draw_2d_grid(stream_rect, grid_h_lines, grid_v_lines, grid_line_width,
21202120
grid_color_r, grid_color_g, grid_color_b);
21212121
#endif

common/stream-model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ namespace rs2
107107
bool show_safety_zones_2d = true;
108108

109109
#ifdef BUILD_VIEWPORT_GRID_OVERLAY
110-
bool show_grid = false;
110+
bool show_overlay_grid = false;
111111
int grid_h_lines = 1;
112112
int grid_v_lines = 1;
113113
int grid_line_width = 1;

0 commit comments

Comments
 (0)