mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
nitpicker: fix mode change for requested fb
This is a follow-up commit to "nitpicker: make framebuffer and input optional". It restores the dynamic mode-change support when using 'request_framebuffer="yes"' as needed in scenarios where multiple nitpicker instances are used in a cascaded way. E.g., Sculpt's Leitzentrale. The previous version missed to reconstruct the '_fb_screen' on mode changes. Issue #3812
This commit is contained in:
parent
2437d759b6
commit
c7d9b2ca92
@ -890,15 +890,15 @@ void Nitpicker::Main::_handle_fb_mode()
|
||||
_timer.trigger_periodic(0);
|
||||
}
|
||||
|
||||
if (_request_framebuffer && !_fb_screen.constructed())
|
||||
/* reconstruct '_fb_screen' with updated mode */
|
||||
if (_request_framebuffer && _framebuffer.constructed())
|
||||
_fb_screen.construct(_env.rm(), *_framebuffer);
|
||||
|
||||
if (!_request_framebuffer && _fb_screen.constructed())
|
||||
_fb_screen.destruct();
|
||||
|
||||
if (!_request_framebuffer && _framebuffer.constructed()) {
|
||||
if (!_request_framebuffer && _framebuffer.constructed())
|
||||
_framebuffer.destruct();
|
||||
}
|
||||
|
||||
if (!_request_framebuffer)
|
||||
_timer.trigger_periodic(_timer_period_ms*1000);
|
||||
|
Loading…
x
Reference in New Issue
Block a user