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