diff options
author | Maciej Zygmanowski <sppmacd@pm.me> | 2021-04-19 17:18:30 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-04-19 17:30:07 +0200 |
commit | 136f6fb7c8ed783906a1542c19ab674c362e4d26 (patch) | |
tree | 9aacd22a789200ef3734f4f16337a44d448ac43b | |
parent | efb14e95c434e2f1767ee0129904d7ee76be9c6e (diff) | |
download | serenity-136f6fb7c8ed783906a1542c19ab674c362e4d26.zip |
WindowServer: Use VERIFY instead of assert in scale factor check
-rw-r--r-- | Userland/Services/WindowServer/Screen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/Screen.cpp b/Userland/Services/WindowServer/Screen.cpp index dc909fc181..10e77bd94b 100644 --- a/Userland/Services/WindowServer/Screen.cpp +++ b/Userland/Services/WindowServer/Screen.cpp @@ -75,7 +75,7 @@ bool Screen::set_resolution(int width, int height, int new_scale_factor) int new_physical_width = width * new_scale_factor; int new_physical_height = height * new_scale_factor; if (physical_width() == new_physical_width && physical_height() == new_physical_height) { - assert(scale_factor() != new_scale_factor); + VERIFY(scale_factor() != new_scale_factor); on_change_resolution(m_pitch, physical_width(), physical_height(), new_scale_factor); return true; } |