mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
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:
parent
98cb37b9e4
commit
088bf52be1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user