From ed2b2790d5ad3f21c8684c97df79cebfd1d7842f Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Sat, 24 Jul 2021 04:47:24 +0200 Subject: [PATCH] early-access version 1910 --- README.md | 2 +- src/video_core/renderer_opengl/renderer_opengl.cpp | 1 + src/yuzu/applets/qt_web_browser.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0266a21b0..62b9d7196 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 1909. +This is the source code for early-access 1910. ## Legal Notice diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 165319dee..285e78384 100755 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -334,6 +334,7 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { Settings::values.bg_green.GetValue() / 255.0f, Settings::values.bg_blue.GetValue() / 255.0f, 1.0f); } + // Set projection matrix const std::array ortho_matrix = MakeOrthographicMatrix(static_cast(layout.width), static_cast(layout.height)); diff --git a/src/yuzu/applets/qt_web_browser.cpp b/src/yuzu/applets/qt_web_browser.cpp index 318cf9c18..2415e375f 100755 --- a/src/yuzu/applets/qt_web_browser.cpp +++ b/src/yuzu/applets/qt_web_browser.cpp @@ -371,7 +371,7 @@ void QtNXWebEngineView::FocusFirstLinkElement() { QWebEngineScript focus_link_element; constexpr char FOCUS_LINK_ELEMENT_SCRIPT[] = - R"(document.getElementsByTagName("a")[0].focus();)"; + R"(if(document.getElementsByTagName("a").length > 0) document.getElementsByTagName("a")[0].focus();)"; focus_link_element.setName(QStringLiteral("focus_link_element.js")); focus_link_element.setSourceCode(QString::fromStdString(FOCUS_LINK_ELEMENT_SCRIPT));