mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-30 05:24:13 +01:00
Apply clang-format-18
This commit is contained in:
parent
ff0aab06dc
commit
4614cc2e15
@ -3470,7 +3470,7 @@ void GMainWindow::SyncMenuUISettings() {
|
|||||||
ui->action_Screen_Layout_Separate_Windows->setChecked(
|
ui->action_Screen_Layout_Separate_Windows->setChecked(
|
||||||
Settings::values.layout_option.GetValue() == Settings::LayoutOption::SeparateWindows);
|
Settings::values.layout_option.GetValue() == Settings::LayoutOption::SeparateWindows);
|
||||||
ui->action_Screen_Layout_Custom_Layout->setChecked(Settings::values.layout_option.GetValue() ==
|
ui->action_Screen_Layout_Custom_Layout->setChecked(Settings::values.layout_option.GetValue() ==
|
||||||
Settings::LayoutOption::CustomLayout);
|
Settings::LayoutOption::CustomLayout);
|
||||||
ui->action_Screen_Layout_Swap_Screens->setChecked(Settings::values.swap_screen.GetValue());
|
ui->action_Screen_Layout_Swap_Screens->setChecked(Settings::values.swap_screen.GetValue());
|
||||||
ui->action_Screen_Layout_Upright_Screens->setChecked(
|
ui->action_Screen_Layout_Upright_Screens->setChecked(
|
||||||
Settings::values.upright_screen.GetValue());
|
Settings::values.upright_screen.GetValue());
|
||||||
|
@ -697,7 +697,7 @@ void RendererOpenGL::DrawScreens(const Layout::FramebufferLayout& layout, bool f
|
|||||||
|
|
||||||
void RendererOpenGL::ApplySecondLayerOpacity() {
|
void RendererOpenGL::ApplySecondLayerOpacity() {
|
||||||
if ((Settings::values.layout_option.GetValue() == Settings::LayoutOption::CustomLayout ||
|
if ((Settings::values.layout_option.GetValue() == Settings::LayoutOption::CustomLayout ||
|
||||||
Settings::values.custom_layout) &&
|
Settings::values.custom_layout) &&
|
||||||
Settings::values.custom_second_layer_opacity.GetValue() < 100) {
|
Settings::values.custom_second_layer_opacity.GetValue() < 100) {
|
||||||
state.blend.src_rgb_func = GL_CONSTANT_ALPHA;
|
state.blend.src_rgb_func = GL_CONSTANT_ALPHA;
|
||||||
state.blend.src_a_func = GL_CONSTANT_ALPHA;
|
state.blend.src_a_func = GL_CONSTANT_ALPHA;
|
||||||
@ -709,7 +709,7 @@ void RendererOpenGL::ApplySecondLayerOpacity() {
|
|||||||
|
|
||||||
void RendererOpenGL::ResetSecondLayerOpacity() {
|
void RendererOpenGL::ResetSecondLayerOpacity() {
|
||||||
if ((Settings::values.layout_option.GetValue() == Settings::LayoutOption::CustomLayout ||
|
if ((Settings::values.layout_option.GetValue() == Settings::LayoutOption::CustomLayout ||
|
||||||
Settings::values.custom_layout) &&
|
Settings::values.custom_layout) &&
|
||||||
Settings::values.custom_second_layer_opacity.GetValue() < 100) {
|
Settings::values.custom_second_layer_opacity.GetValue() < 100) {
|
||||||
state.blend.src_rgb_func = GL_ONE;
|
state.blend.src_rgb_func = GL_ONE;
|
||||||
state.blend.dst_rgb_func = GL_ZERO;
|
state.blend.dst_rgb_func = GL_ZERO;
|
||||||
|
Loading…
Reference in New Issue
Block a user