From a8f4db7b4b4ce60492c65846a647e43906b6aba7 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 3 Aug 2019 11:02:44 +0100 Subject: [PATCH] Fix #9717: Scroll bars do not render correctly when using OpenGL renderer --- distribution/changelog.txt | 1 + src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 4ef6fe9236..831d91febe 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -6,6 +6,7 @@ - Fix: [#9574] Text overflow in scenario objective window when using CJK languages. - Fix: [#9625] Show correct cost in scenery selection. - Fix: [#9669] The tile inspector shortcut key does not work with debugging tools disabled. +- Fix: [#9717] Scroll bars do not render correctly when using OpenGL renderer. 0.2.3 (2019-07-10) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index 6fa92e46e6..85623819a4 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -569,7 +569,7 @@ void OpenGLDrawingContext::FillRect(uint32_t colour, int32_t left, int32_t top, if (colour & 0x1000000) { // cross-pattern - command.flags = DrawRectCommand::FLAG_CROSS_HATCH; + command.flags |= DrawRectCommand::FLAG_CROSS_HATCH; } else if (colour & 0x2000000) {