mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01: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:
committed by
Norman Feske
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
|
||||
|
||||
Reference in New Issue
Block a user