Update root.c
Remove unnecessary function variables width and height, as they do not add any real value, and rather pass these as all other arguments are (such as the connection), giving the routine a uniform look. Signed Off: Brian Sobulefsky <brian.sobulefsky@protonmail.com>
This commit is contained in:
parent
02e12f4cb4
commit
7a786dab1d
5
root.c
5
root.c
|
@ -511,13 +511,12 @@ static int
|
|||
luaA_root_get_content(lua_State *L)
|
||||
{
|
||||
cairo_surface_t *surface;
|
||||
int width = globalconf.screen->width_in_pixels;
|
||||
int height = globalconf.screen->height_in_pixels;
|
||||
|
||||
surface = cairo_xcb_surface_create(globalconf.connection,
|
||||
globalconf.screen->root,
|
||||
globalconf.default_visual,
|
||||
width, height);
|
||||
globalconf.screen->width_in_pixels,
|
||||
globalconf.screen->height_in_pixels);
|
||||
|
||||
lua_pushlightuserdata(L, surface);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue