From f367c4ba7baa8b98a1e9aab76e50f17e292125a8 Mon Sep 17 00:00:00 2001 From: sephiroth99 Date: Mon, 30 Nov 2015 22:56:42 -0500 Subject: [PATCH 1/2] Fix compilation under VS2015 Update 1 --- src/xenia/debug/ui/debug_window.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xenia/debug/ui/debug_window.cc b/src/xenia/debug/ui/debug_window.cc index c87378606..56c4c6cea 100644 --- a/src/xenia/debug/ui/debug_window.cc +++ b/src/xenia/debug/ui/debug_window.cc @@ -1245,13 +1245,13 @@ void DebugWindow::DrawBreakpointsPane() { if (has_any_call_filter && !call_rankings[i].second) { continue; } - auto export = all_exports[call_rankings[i].first]; - if (export->type != cpu::Export::Type::kFunction || - !export->is_implemented()) { + auto export_entry = all_exports[call_rankings[i].first]; + if (export_entry->type != cpu::Export::Type::kFunction || + !export_entry->is_implemented()) { continue; } // TODO(benvanik): skip unused kernel calls. - ImGui::PushID(export); + ImGui::PushID(export_entry); // TODO(benvanik): selection, hover info (module name, ordinal, etc). bool is_pre_enabled = false; bool is_post_enabled = false; @@ -1275,7 +1275,7 @@ void DebugWindow::DrawBreakpointsPane() { ImGui::SameLine(); ImGui::Dummy(ImVec2(4, 0)); ImGui::SameLine(); - ImGui::Text(export->name); + ImGui::Text(export_entry->name); ImGui::Dummy(ImVec2(0, 1)); ImGui::PopID(); } From e8296a8608b2d55bbc17c3e15a3bcd1e1b8bf6d9 Mon Sep 17 00:00:00 2001 From: sephiroth99 Date: Mon, 30 Nov 2015 22:59:30 -0500 Subject: [PATCH 2/2] ui/gl: GLContext: access directly class member In ::EndSwap, dc_ class member was accessed through a function. Access it directly like it is done elsewhere in the class. It is also the only place where it is used, so remove the function in question. --- src/xenia/ui/gl/gl_context.cc | 2 +- src/xenia/ui/gl/gl_context.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xenia/ui/gl/gl_context.cc b/src/xenia/ui/gl/gl_context.cc index 926658d33..429e30387 100644 --- a/src/xenia/ui/gl/gl_context.cc +++ b/src/xenia/ui/gl/gl_context.cc @@ -463,7 +463,7 @@ void GLContext::BeginSwap() { void GLContext::EndSwap() { SCOPE_profile_cpu_i("gpu", "xe::ui::gl::GLContext::EndSwap"); - SwapBuffers(dc()); + SwapBuffers(dc_); } } // namespace gl diff --git a/src/xenia/ui/gl/gl_context.h b/src/xenia/ui/gl/gl_context.h index 81ff5903f..dd3389031 100644 --- a/src/xenia/ui/gl/gl_context.h +++ b/src/xenia/ui/gl/gl_context.h @@ -35,8 +35,6 @@ class GLContext : public GraphicsContext { public: ~GLContext() override; - HDC dc() const { return dc_; } - ImmediateDrawer* immediate_drawer() override; bool is_current() override;