diff options
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/UnityWindowView.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/unity-shared/UnityWindowView.cpp b/unity-shared/UnityWindowView.cpp index 939453c2a..260baac70 100644 --- a/unity-shared/UnityWindowView.cpp +++ b/unity-shared/UnityWindowView.cpp @@ -22,6 +22,7 @@ #include "UnityWindowView.h" #include <Nux/VLayout.h> +#include "unity-shared/UnitySettings.h" #include "unity-shared/WindowManager.h" namespace unity { @@ -233,6 +234,11 @@ void UnityWindowView::Draw(nux::GraphicsEngine& GfxContext, bool force_draw) rop.Blend = false; rop.SrcBlend = GL_ONE; rop.DstBlend = GL_ONE_MINUS_SRC_ALPHA; + + auto temp_background_color = background_color(); + + if (Settings::Instance().GetLowGfxMode()) + temp_background_color.alpha = 1.0f; #ifndef NUX_OPENGLES_20 if (GfxContext.UsingGLSLCodePath()) @@ -240,7 +246,8 @@ void UnityWindowView::Draw(nux::GraphicsEngine& GfxContext, bool force_draw) bg_texture_, texxform_blur_bg, nux::color::White, - background_color, nux::LAYER_BLEND_MODE_OVERLAY, + temp_background_color, + Settings::Instance().GetLowGfxMode() ? nux::LAYER_BLEND_MODE_NORMAL : nux::LAYER_BLEND_MODE_OVERLAY, true, rop); else gPainter.PushDrawTextureLayer(GfxContext, base, |
