Skip to content

Commit

Permalink
[共通] fix #1150
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Dec 12, 2023
1 parent 3426203 commit ce9bd82
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
# include <Siv3D/SimpleGUI.hpp>
# include <Siv3D/Transformer2D.hpp>
# include <Siv3D/ScopedRenderStates2D.hpp>
# include <Siv3D/ScopedRenderTarget2D.hpp>
# include <Siv3D/ScopedColorAdd2D.hpp>
# include <Siv3D/ScopedColorMul2D.hpp>
# include <Siv3D/UserAction.hpp>
# include <Siv3D/WindowState.hpp>
# include <Siv3D/Windows/Windows.hpp>
Expand Down Expand Up @@ -86,7 +89,7 @@ namespace s3d

SceneMessageBoxImpl()
{
System::SetTerminationTriggers(UserAction::NoAction);
System::SetTerminationTriggers(UserAction::CloseButtonClicked);
Scene::SetBackground(ColorF{ 0.11 });
}

Expand Down Expand Up @@ -178,6 +181,12 @@ namespace s3d

ScopedRenderStates2D m_rs{ BlendState::Default2D, SamplerState::Default2D, RasterizerState::Default2D };

ScopedRenderTarget2D m_rt{ none };

ScopedColorAdd2D m_add{ 0.0 };

ScopedColorMul2D m_mul{ 1.0 };

uint32 m_triggers = System::GetTerminationTriggers();

ColorF m_bgColor = Scene::GetBackground();
Expand Down

0 comments on commit ce9bd82

Please sign in to comment.