This commit is contained in:
Andrea Cavalli 2021-09-12 16:22:16 +02:00
parent 672bba9ed0
commit f5a4fe32db
2 changed files with 3 additions and 3 deletions

View File

@ -732,7 +732,7 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv)
miSetPixmapDepths();
ret = fbScreenInit(pScreen, NULL,
xwl_screen->width * 2, xwl_screen->height * 2,
xwl_screen->width, xwl_screen->height,
monitorResolution, monitorResolution, 0,
BitsPerPixel(xwl_screen->depth));
if (!ret)

View File

@ -470,8 +470,8 @@ ensure_surface_for_window(WindowPtr window)
}
wl_region_add(region, 0, 0,
xwl_scale_to(xwl_screen, window->drawable.width),
xwl_scale_to(xwl_screen, window->drawable.height));
window->drawable.width,
window->drawable.height);
wl_surface_set_opaque_region(xwl_window->surface, region);
wl_region_destroy(region);
}