mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
parent
24888457d5
commit
fb8d3635d9
9 changed files with 99 additions and 69 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "Event.h"
|
||||
#include "EventLoop.h"
|
||||
#include "WindowManager.h"
|
||||
#include <AK/Debug.h>
|
||||
#include <Kernel/API/FB.h>
|
||||
#include <Kernel/API/MousePacket.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -81,15 +82,14 @@ bool Screen::set_resolution(int width, int height, int new_scale_factor)
|
|||
|
||||
FBResolution physical_resolution { 0, (unsigned)new_physical_width, (unsigned)new_physical_height };
|
||||
int rc = fb_set_resolution(m_framebuffer_fd, &physical_resolution);
|
||||
#ifdef WSSCREEN_DEBUG
|
||||
dbg() << "fb_set_resolution() - return code " << rc;
|
||||
#endif
|
||||
dbgln<debug_wsscreen>("fb_set_resolution() - return code {}", rc);
|
||||
|
||||
if (rc == 0) {
|
||||
on_change_resolution(physical_resolution.pitch, physical_resolution.width, physical_resolution.height, new_scale_factor);
|
||||
return true;
|
||||
}
|
||||
if (rc == -1) {
|
||||
dbg() << "Invalid resolution " << width << "x" << height;
|
||||
dbgln("Invalid resolution {}x{}", width, height);
|
||||
on_change_resolution(physical_resolution.pitch, physical_resolution.width, physical_resolution.height, new_scale_factor);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue