1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:07:45 +00:00

WindowServer: Don't use old GNU-style designator

Since we use C++20, we can move to the new standardized designated
initializer syntax.
This commit is contained in:
Daniel Bertalan 2021-07-05 18:15:16 +02:00 committed by Gunnar Beutner
parent ca06fd658d
commit a2e0291172

View file

@ -241,10 +241,10 @@ bool ScreenLayout::try_auto_add_framebuffer(String const& device_path)
if (!collision) {
screens.append({
device : device_path,
location : new_screen_rect.location(),
resolution : new_screen_rect.size(),
scale_factor : 1
.device = device_path,
.location = new_screen_rect.location(),
.resolution = new_screen_rect.size(),
.scale_factor = 1
});
if (is_valid()) {