mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-26 19:22:30 -05:00
WindowServer: Use VERIFY instead of assert in scale factor check
This commit is contained in:
parent
efb14e95c4
commit
136f6fb7c8
Notes:
sideshowbarker
2024-07-18 19:23:59 +09:00
Author: https://github.com/sppmacd Commit: https://github.com/SerenityOS/serenity/commit/136f6fb7c8e Pull-request: https://github.com/SerenityOS/serenity/pull/6489
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue