MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / update_main_loop_call_rate

Method update_main_loop_call_rate

src/MainProgram.cpp:580–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580void MainProgram::update_main_loop_call_rate(unsigned newCallbackRate) {
581 SDL_SetHint(SDL_HINT_MAIN_CALLBACK_RATE, std::to_string(newCallbackRate).c_str());
582}
583
584void MainProgram::set_first_screen(std::unique_ptr<Screen> firstScreen) {
585 set_screen([&](std::unique_ptr<Screen>){ return std::move(firstScreen); });

Callers 3

initialize_sdlFunction · 0.80
settings_viewMethod · 0.80

Calls 2

c_strMethod · 0.80
to_stringFunction · 0.50

Tested by

no test coverage detected