mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
vbox: only clear screen if virtual_fb_mode changed
Fixes genodelabs/genode#4085
This commit is contained in:
committed by
Norman Feske
parent
a47fd36b9f
commit
8a4b52d9e3
@@ -145,10 +145,13 @@ class Genodefb :
|
||||
/* save the new bitmap reference */
|
||||
_display->QuerySourceBitmap(screen, _display_bitmap.asOutParam());
|
||||
|
||||
bool ok = (w <= (ULONG)_fb_mode.area.w()) &&
|
||||
(h <= (ULONG)_fb_mode.area.h());
|
||||
bool const ok = (w <= (ULONG)_fb_mode.area.w()) &&
|
||||
(h <= (ULONG)_fb_mode.area.h());
|
||||
|
||||
if (ok) {
|
||||
bool const changed = (w != (ULONG)_virtual_fb_mode.area.w()) ||
|
||||
(h != (ULONG)_virtual_fb_mode.area.h());
|
||||
|
||||
if (ok && changed) {
|
||||
Genode::log("fb resize : [", screen, "] ",
|
||||
_virtual_fb_mode.area, " -> ",
|
||||
w, "x", h,
|
||||
@@ -163,7 +166,7 @@ class Genodefb :
|
||||
_virtual_fb_mode = Fb_Genode::Mode { .area = { w, h } };
|
||||
|
||||
result = S_OK;
|
||||
} else {
|
||||
} else if (changed) {
|
||||
Genode::log("fb resize : [", screen, "] ",
|
||||
_virtual_fb_mode.area, " -> ",
|
||||
w, "x", h, " ignored"
|
||||
|
||||
Reference in New Issue
Block a user