Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
roeas committed Sep 12, 2023
1 parent 3404891 commit 782e884
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Engine/Source/Editor/ImGui/EditorImGuiViewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ EditorImGuiViewport::EditorImGuiViewport(engine::RenderContext* pRenderContext)

void EditorImGuiViewport::Update()
{
//struct Rect { int left, top, m_width, m_height; };
//struct Rect { int left, top, width, height; };
//struct Monitor {
// Rect work_rect;
// Rect monitor_rect;
Expand All @@ -101,9 +101,9 @@ void EditorImGuiViewport::Update()
// const os::Monitor& m = monitors[i];
// ImGuiPlatformMonitor im;
// im.MainPos = ImVec2((float)m.monitor_rect.left, (float)m.monitor_rect.top);
// im.MainSize = ImVec2((float)m.monitor_rect.m_width, (float)m.monitor_rect.m_height);
// im.MainSize = ImVec2((float)m.monitor_rect.width, (float)m.monitor_rect.height);
// im.WorkPos = ImVec2((float)m.work_rect.left, (float)m.work_rect.top);
// im.WorkSize = ImVec2((float)m.work_rect.m_width, (float)m.work_rect.m_height);
// im.WorkSize = ImVec2((float)m.work_rect.width, (float)m.work_rect.height);
//
// if (m.primary) {
// pio.Monitors.push_front(im);
Expand Down
2 changes: 1 addition & 1 deletion Engine/Source/Editor/UILayers/AssetBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ void AssetBrowser::Update()
// Column border size is fixed in ImGui
// https://stackoverflow.com/questions/72068188/how-do-i-change-the-border-size-for-a-table-in-dear-imgui

// Colomn m_width doesn't have a flag to set only in the first frame.
// Colomn width doesn't have a flag to set only in the first frame.
ImGui::SetColumnWidth(0, ImGui::GetWindowContentRegionMax().x * 0.3f);
bFirstUpdate = false;
}
Expand Down
2 changes: 1 addition & 1 deletion Engine/Source/Editor/UILayers/OutputLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void OutputLog::Draw() {
// If you have tens of thousands of items and their processing cost is non-negligible, coarse clipping them
// on your side is recommended. Using ImGuiListClipper requires
// - A) random access into your data
// - B) items all being the same m_height,
// - B) items all being the same height,
// both of which we can handle since we have an array pointing to the beginning of each line of text.
// When using the filter (in the block of code above) we don't have random access into the data to display
// anymore, which is why we don't use the clipper. Storing or skimming through the search result would make
Expand Down
6 changes: 3 additions & 3 deletions Engine/Source/Runtime/ECWorld/TerrainComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ class TerrainComponent final

private:
//mesh
uint16_t m_meshWidth = 129U;//uint32_t is too big for m_width
uint16_t m_meshWidth = 129U;//uint32_t is too big for width
uint16_t m_meshDepth = 129U;

//m_height map input
uint16_t m_texWidth = 129U;//uint32_t is too big for m_width
uint16_t m_texWidth = 129U;//uint32_t is too big for width
uint16_t m_texDepth = 129U;//
float m_roughness = 1.55f;
float m_minHeight = 0.0f;
Expand All @@ -71,7 +71,7 @@ class TerrainComponent final
//for patch wise generating
//uint32_t m_PatchSize;

//m_height map output
//height map output
std::vector<std::byte> m_elevationRawData;
};

Expand Down
2 changes: 1 addition & 1 deletion Engine/Source/Runtime/ImGui/ImGuiContextInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void ImGuiContextInstance::BeginDockSpace()
ImGuiWindowFlags_NoBackground;

// Place dock space window under static imgui layers.
// It is a hack now as only main menu bar is a static layer so we only need to adjust the m_height.
// It is a hack now as only main menu bar is a static layer so we only need to adjust the height.
// If we have more static layers, we need to calculate their accurate areas.
ImGuiViewport* pMainViewport = ImGui::GetMainViewport();
assert(pMainViewport && "The main viewport cannot be null");
Expand Down

0 comments on commit 782e884

Please sign in to comment.