MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / setRefreshRate

Method setRefreshRate

gui/qt/debugger/visualizerdisplaywidget.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void VisualizerDisplayWidget::setRefreshRate(int rate) {
93 if (!rate) {
94 return;
95 }
96 connect(m_refreshTimer, SIGNAL(timeout()), this, SLOT(draw()));
97 m_refreshTimer->stop();
98 m_refreshTimer->setInterval(1000 / rate);
99 m_refreshTimer->start();
100 m_refresh = rate;
101}
102
103void VisualizerDisplayWidget::setConfig(float bppstep, int w, int h, uint32_t u, uint32_t c, bool g, uint32_t *d, uint32_t *e) {
104 m_bppstep = bppstep;

Callers 1

viewToStringMethod · 0.80

Calls 1

stopMethod · 0.80

Tested by

no test coverage detected