screen: Allow NULL out arguments in meta_screen_get_size
This commit is contained in:
parent
bfacd9d420
commit
079822c3f4
@ -3411,7 +3411,10 @@ meta_screen_get_size (MetaScreen *screen,
|
||||
int *width,
|
||||
int *height)
|
||||
{
|
||||
if (width != NULL)
|
||||
*width = screen->rect.width;
|
||||
|
||||
if (height != NULL)
|
||||
*height = screen->rect.height;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user