mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +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:
parent
ca06fd658d
commit
a2e0291172
1 changed files with 4 additions and 4 deletions
|
@ -241,10 +241,10 @@ bool ScreenLayout::try_auto_add_framebuffer(String const& device_path)
|
||||||
|
|
||||||
if (!collision) {
|
if (!collision) {
|
||||||
screens.append({
|
screens.append({
|
||||||
device : device_path,
|
.device = device_path,
|
||||||
location : new_screen_rect.location(),
|
.location = new_screen_rect.location(),
|
||||||
resolution : new_screen_rect.size(),
|
.resolution = new_screen_rect.size(),
|
||||||
scale_factor : 1
|
.scale_factor = 1
|
||||||
});
|
});
|
||||||
|
|
||||||
if (is_valid()) {
|
if (is_valid()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue