Play-/Source/ui_win32/FrameDebugger/GsContextStateView.cpp
2018-04-30 21:01:23 +01:00

20 lines
468 B
C++

#include "GsContextStateView.h"
#include "GsStateUtils.h"
CGsContextStateView::CGsContextStateView(HWND parent, const RECT& rect, unsigned int contextId)
: CRegViewPage(parent, rect)
, m_contextId(contextId)
{
}
CGsContextStateView::~CGsContextStateView()
{
}
void CGsContextStateView::UpdateState(CGSHandler* gs)
{
std::string result;
result += CGsStateUtils::GetContextState(gs, m_contextId);
SetDisplayText(result.c_str());
CRegViewPage::Update();
}