Skip to content

Commit 3d584f0

Browse files
authored
fix: add missing newlines in logs (#77)
1 parent 80f5000 commit 3d584f0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/windows/settings_manager_apply.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ namespace display_device {
244244
const auto original_primary_device { cached_primary_device.empty() ? current_primary_device : cached_primary_device };
245245
const auto &new_primary_device { device_to_configure };
246246

247-
if (!try_change(new_primary_device, "Changing primary display to: ", "Failed to apply new configuration, because a new primary device could not be set!")) {
247+
if (!try_change(new_primary_device, "Changing primary display to:\n", "Failed to apply new configuration, because a new primary device could not be set!")) {
248248
// Error already logged
249249
return false;
250250
}
@@ -255,7 +255,7 @@ namespace display_device {
255255
}
256256

257257
if (might_need_to_restore) {
258-
if (!try_change(cached_primary_device, "Changing primary display back to: ", "Failed to restore original primary device!")) {
258+
if (!try_change(cached_primary_device, "Changing primary display back to:\n", "Failed to restore original primary device!")) {
259259
// Error already logged
260260
return false;
261261
}
@@ -307,7 +307,7 @@ namespace display_device {
307307
const auto new_display_modes { win_utils::computeNewDisplayModes(config.m_resolution,
308308
config.m_refresh_rate, configuring_primary_devices, device_to_configure, additional_devices_to_configure, original_display_modes) };
309309

310-
if (!try_change(new_display_modes, "Changing display modes to: ", "Failed to apply new configuration, because new display modes could not be set!")) {
310+
if (!try_change(new_display_modes, "Changing display modes to:\n", "Failed to apply new configuration, because new display modes could not be set!")) {
311311
// Error already logged
312312
return false;
313313
}
@@ -318,7 +318,7 @@ namespace display_device {
318318
}
319319

320320
if (might_need_to_restore) {
321-
if (!try_change(cached_display_modes, "Changing display modes back to: ", "Failed to restore original display modes!")) {
321+
if (!try_change(cached_display_modes, "Changing display modes back to:\n", "Failed to restore original display modes!")) {
322322
// Error already logged
323323
return false;
324324
}
@@ -364,7 +364,7 @@ namespace display_device {
364364
const auto original_hdr_states { cached_hdr_states.empty() ? current_hdr_states : cached_hdr_states };
365365
const auto new_hdr_states { win_utils::computeNewHdrStates(config.m_hdr_state, configuring_primary_devices, device_to_configure, additional_devices_to_configure, original_hdr_states) };
366366

367-
if (!try_change(new_hdr_states, "Changing HDR states to: ", "Failed to apply new configuration, because new HDR states could not be set!")) {
367+
if (!try_change(new_hdr_states, "Changing HDR states to:\n", "Failed to apply new configuration, because new HDR states could not be set!")) {
368368
// Error already logged
369369
return false;
370370
}
@@ -375,7 +375,7 @@ namespace display_device {
375375
}
376376

377377
if (might_need_to_restore) {
378-
if (!try_change(cached_hdr_states, "Changing HDR states back to: ", "Failed to restore original HDR states!")) {
378+
if (!try_change(cached_hdr_states, "Changing HDR states back to:\n", "Failed to restore original HDR states!")) {
379379
// Error already logged
380380
return false;
381381
}

0 commit comments

Comments
 (0)