浏览代码

WindowServer: Fix build after FBResolution changes

Andreas Kling 5 年之前
父节点
当前提交
13dcd9a037
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Servers/WindowServer/Screen.cpp

+ 1 - 1
Servers/WindowServer/Screen.cpp

@@ -70,7 +70,7 @@ Screen::~Screen()
 
 
 bool Screen::set_resolution(int width, int height)
 bool Screen::set_resolution(int width, int height)
 {
 {
-    FBResolution resolution { 0, (int)width, (int)height };
+    FBResolution resolution { 0, (unsigned)width, (unsigned)height };
     int rc = fb_set_resolution(m_framebuffer_fd, &resolution);
     int rc = fb_set_resolution(m_framebuffer_fd, &resolution);
 #ifdef WSSCREEN_DEBUG
 #ifdef WSSCREEN_DEBUG
     dbg() << "fb_set_resolution() - return code " << rc;
     dbg() << "fb_set_resolution() - return code " << rc;