Skip to content

Commit a0f22c0

Browse files
committed
fix ternary operator
1 parent 0cb01a9 commit a0f22c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenGlass/GlassRenderer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ HRESULT STDMETHODCALLTYPE GlassRenderer::MyCDrawingContext_DrawGeometry(
230230
}
231231
*/
232232
glassEffect->SetGlassRenderingParameters(
233-
(Shared::g_type == Shared::Type::Aero) ? color : Shared::g_color,
233+
(Shared::g_type == Shared::Type::Aero) ? Shared::g_color : color,
234234
Shared::g_afterglow,
235235
Shared::g_glassOpacity,
236236
Shared::g_blurAmount,
237237
active ? Shared::g_colorBalance : (0.4f * Shared::g_colorBalance), // y = 0.4x
238-
Shared::g_afterglowBalance, // stays the same
238+
Shared::g_afterglowBalance, // stays the same
239239
active ? Shared::g_blurBalance : (0.4f * Shared::g_blurBalance + 0.6f), // y = 0.4x + 60
240240
Shared::g_type
241241
);

0 commit comments

Comments
 (0)