drivers/framebuffer/sdl: emulate a 60Hz sampling rate

Set timer signaling only if a valid signal context is registered.

Ref #2192
This commit is contained in:
Emery Hemingway 2016-12-06 12:36:05 +01:00 committed by Norman Feske
parent 98cb37b9e4
commit 088bf52be1

View File

@ -68,7 +68,8 @@ class Framebuffer::Session_component : public Genode::Rpc_object<Session>
void sync_sigh(Genode::Signal_context_capability sigh) override
{
_timer.sigh(sigh);
_timer.trigger_periodic(10*1000);
if (sigh.valid())
_timer.trigger_periodic(100000000 / 5994); /* 59.94Hz */
}
void refresh(int x, int y, int w, int h) override